| 程序包 | 说明 |
|---|---|
| org.apache.hc.client5.http.impl.async |
Asynchronous HTTP client API implementation that supports both
HTTP/2 and HTTP/1.1 transport.
|
| org.apache.hc.client5.http.impl.classic |
Classic HTTP client API implementation that supports HTTP/1.1 transport
only.
|
| org.apache.hc.client5.http.protocol |
HTTP protocol interceptors that enable advanced functionality
such as HTTP state management and authentication state caching.
|
| org.apache.hc.core5.http.protocol |
Core HTTP protocol interceptors.
|
| org.apache.hc.core5.http2.protocol |
HTTP/2 protocol interceptors.
|
| 限定符和类型 | 方法和说明 |
|---|---|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.addResponseInterceptorFirst(HttpResponseInterceptor interceptor)
Adds this protocol interceptor to the head of the protocol processing list.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.addResponseInterceptorFirst(HttpResponseInterceptor interceptor)
Adds this protocol interceptor to the head of the protocol processing list.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.addResponseInterceptorLast(HttpResponseInterceptor interceptor)
Adds this protocol interceptor to the tail of the protocol processing list.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.addResponseInterceptorLast(HttpResponseInterceptor interceptor)
Adds this protocol interceptor to the tail of the protocol processing list.
|
| 限定符和类型 | 方法和说明 |
|---|---|
HttpClientBuilder |
HttpClientBuilder.addResponseInterceptorFirst(HttpResponseInterceptor interceptor)
Adds this protocol interceptor to the head of the protocol processing list.
|
HttpClientBuilder |
HttpClientBuilder.addResponseInterceptorLast(HttpResponseInterceptor interceptor)
Adds this protocol interceptor to the tail of the protocol processing list.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ResponseProcessCookies
Response interceptor that populates the current
CookieStore with data
contained in response cookies received in the given the HTTP response. |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
HttpProcessor
HTTP protocol processor is a collection of protocol interceptors that
implements the 'Chain of Responsibility' pattern, where each individual
protocol interceptor is expected to work on a particular aspect of the HTTP
protocol the interceptor is responsible for.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
DefaultHttpProcessor
Default immutable implementation of
HttpProcessor. |
class |
ResponseConnControl
ResponseConnControl is responsible for adding
Connection header
to the outgoing responses, which is essential for managing persistence of
HTTP/1.0 connections. |
class |
ResponseContent
ResponseContent is the most important interceptor for outgoing responses.
|
class |
ResponseDate
ResponseDate is responsible for adding
Date header to the
outgoing responses. |
class |
ResponseServer
ResponseServer is responsible for adding
Server header. |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpProcessorBuilder |
HttpProcessorBuilder.add(HttpResponseInterceptor e) |
HttpProcessorBuilder |
HttpProcessorBuilder.addAll(HttpResponseInterceptor... e) |
HttpProcessorBuilder |
HttpProcessorBuilder.addAllFirst(HttpResponseInterceptor... e) |
HttpProcessorBuilder |
HttpProcessorBuilder.addAllLast(HttpResponseInterceptor... e) |
HttpProcessorBuilder |
HttpProcessorBuilder.addFirst(HttpResponseInterceptor e) |
HttpProcessorBuilder |
HttpProcessorBuilder.addLast(HttpResponseInterceptor e) |
| 构造器和说明 |
|---|
DefaultHttpProcessor(HttpRequestInterceptor[] requestInterceptors,
HttpResponseInterceptor[] responseInterceptors) |
DefaultHttpProcessor(HttpResponseInterceptor... responseInterceptors) |
| 构造器和说明 |
|---|
DefaultHttpProcessor(List<HttpRequestInterceptor> requestInterceptors,
List<HttpResponseInterceptor> responseInterceptors) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
H2ResponseConnControl
HTTP/2 compatible extension of
ResponseConnControl. |
class |
H2ResponseContent
HTTP/2 compatible extension of
ResponseContent. |
Copyright © 2023. All rights reserved.