Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
looly committed Apr 1, 2022
1 parent 8196941 commit e750c92
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public static ExecutorService newFixedExecutor(int nThreads, String threadNamePr
* </pre>
*
* @param nThreads 线程池大小
* @param maximumQueueSize 队列大小
* @param threadNamePrefix 线程名称前缀
* @param isBlocked 是否使用{@link BlockPolicy}策略
* @return ExecutorService
Expand Down
1 change: 1 addition & 0 deletions hutool-http/src/main/java/cn/hutool/http/HttpConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ public HttpConfig addRequestInterceptor(HttpInterceptor<HttpRequest> interceptor
* 设置拦截器,用于在请求前重新编辑请求
*
* @param interceptor 拦截器实现
* @return this
*/
public HttpConfig addResponseInterceptor(HttpInterceptor<HttpResponse> interceptor) {
this.responseInterceptors.addChain(interceptor);
Expand Down
11 changes: 7 additions & 4 deletions hutool-http/src/main/java/cn/hutool/http/HttpRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ public HttpRequest body(byte[] bodyBytes) {
* @param config 配置
* @return this
*/
public HttpRequest setConfig(HttpConfig config){
public HttpRequest setConfig(HttpConfig config) {
this.config = config;
return this;
}
Expand Down Expand Up @@ -935,8 +935,9 @@ public HttpRequest setChunkedStreamingMode(int blockSize) {
* 设置拦截器,用于在请求前重新编辑请求
*
* @param interceptor 拦截器实现
* @since 5.7.16
* @return this
* @see #addRequestInterceptor(HttpInterceptor)
* @since 5.7.16
*/
public HttpRequest addInterceptor(HttpInterceptor<HttpRequest> interceptor) {
return addRequestInterceptor(interceptor);
Expand All @@ -946,6 +947,7 @@ public HttpRequest addInterceptor(HttpInterceptor<HttpRequest> interceptor) {
* 设置拦截器,用于在请求前重新编辑请求
*
* @param interceptor 拦截器实现
* @return this
* @since 5.8.0
*/
public HttpRequest addRequestInterceptor(HttpInterceptor<HttpRequest> interceptor) {
Expand All @@ -957,6 +959,7 @@ public HttpRequest addRequestInterceptor(HttpInterceptor<HttpRequest> intercepto
* 设置拦截器,用于在请求前重新编辑请求
*
* @param interceptor 拦截器实现
* @return this
* @since 5.8.0
*/
public HttpRequest addResponseInterceptor(HttpInterceptor<HttpResponse> interceptor) {
Expand Down Expand Up @@ -1087,8 +1090,8 @@ public String toString() {
/**
* 执行Reuqest请求
*
* @param isAsync 是否异步
* @param requestInterceptors 请求拦截器列表
* @param isAsync 是否异步
* @param requestInterceptors 请求拦截器列表
* @param responseInterceptors 响应拦截器列表
* @return this
*/
Expand Down

0 comments on commit e750c92

Please sign in to comment.