Package | Description |
---|---|
cn.hutool.http |
Hutool-http针对JDK的HttpUrlConnection做一层封装,简化了HTTPS请求、文件上传、Cookie记忆等操作,使Http请求变得无比简单。
|
Modifier and Type | Method and Description |
---|---|
Iterator<HttpInterceptor<T>> |
HttpInterceptor.Chain.iterator() |
Modifier and Type | Method and Description |
---|---|
HttpInterceptor.Chain<T> |
HttpInterceptor.Chain.addChain(HttpInterceptor<T> element) |
HttpRequest |
HttpRequest.addInterceptor(HttpInterceptor<HttpRequest> interceptor)
设置拦截器,用于在请求前重新编辑请求
|
HttpRequest |
HttpRequest.addRequestInterceptor(HttpInterceptor<HttpRequest> interceptor)
设置拦截器,用于在请求前重新编辑请求
|
HttpConfig |
HttpConfig.addRequestInterceptor(HttpInterceptor<HttpRequest> interceptor)
设置拦截器,用于在请求前重新编辑请求
|
GlobalInterceptor |
GlobalInterceptor.addRequestInterceptor(HttpInterceptor<HttpRequest> interceptor)
设置拦截器,用于在请求前重新编辑请求
|
HttpRequest |
HttpRequest.addResponseInterceptor(HttpInterceptor<HttpResponse> interceptor)
设置拦截器,用于在请求前重新编辑请求
|
HttpConfig |
HttpConfig.addResponseInterceptor(HttpInterceptor<HttpResponse> interceptor)
设置拦截器,用于在请求前重新编辑请求
|
GlobalInterceptor |
GlobalInterceptor.addResponseInterceptor(HttpInterceptor<HttpResponse> interceptor)
设置拦截器,用于在响应读取后完成编辑或读取
|
Copyright © 2024. All rights reserved.