| 程序包 | 说明 |
|---|---|
| com.ifengxue.http.executor | |
| com.ifengxue.http.proxy |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractHttpExecutor
http执行器基类
|
class |
FormDataHttpExecutor
multipart/form-data请求执行器
|
class |
JsonHttpExecutor
json请求执行器
|
class |
UrlEncodedHttpExecutor
url-encoded执行器
|
class |
XmlHttpExecutor
|
| 限定符和类型 | 方法和说明 |
|---|---|
HttpExecutor |
HttpExecutorFactory.getHttpExecutor(BodyType bodyType)
获取http executor,如果没设置
HttpExecutorFactory.httpClient,则自动创建一个http client |
HttpExecutor |
HttpExecutorFactory.getHttpExecutor(BodyType bodyType,
org.apache.http.impl.client.CloseableHttpClient httpClient)
获取http executor
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
InterceptorAdaptor.beforeRequest(Method method,
Request request,
BodyType bodyType,
ResponseType responseType,
HttpExecutor executor) |
<T> T |
BasicAuthInterceptor.beforeRequest(Method method,
Request request,
BodyType bodyType,
ResponseType responseType,
HttpExecutor executor) |
<T> T |
LoggingInterceptor.beforeRequest(Method method,
Request request,
BodyType bodyType,
ResponseType responseType,
HttpExecutor executor) |
<T> T |
Interceptor.beforeRequest(Method method,
Request request,
BodyType bodyType,
ResponseType responseType,
HttpExecutor executor)
在请求之前执行
|
Copyright © 2019. All rights reserved.