| Package | Description | 
|---|---|
| org.apache.hc.core5.http.protocol | Core HTTP protocol interceptors. | 
| org.apache.hc.core5.http2.protocol | HTTP/2 protocol interceptors. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | HttpProcessorCollects 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. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DefaultHttpProcessorDefault immutable implementation of  HttpProcessor. | 
| class  | ForwardedRequestThis request interceptor can be used by an HTTP proxy or an intermediary to add a Forwarded header
 to outgoing request messages. | 
| class  | RequestConformanceThis request interceptor is responsible for execution of the protocol conformance
 checks on incoming request messages. | 
| class  | RequestConnControlThis request interceptor is responsible for adding  Connectionheader
 to outgoing requests, which is essential for managing persistence ofHTTP/1.0connections. | 
| class  | RequestContentThis request interceptor is responsible for delimiting the message content
 by adding  Content-LengthorTransfer-Contentheaders based
 on the properties of the enclosed entity and the protocol version. | 
| class  | RequestDateThis request interceptor is responsible for adding  Dateheader
 to outgoing request messages. | 
| class  | RequestExpectContinueThis request interceptor is responsible for activation of the 'expect-continue'
 handshake by adding a  Expectheader describing client expectations. | 
| class  | RequestTargetHostThis request interceptor is responsible for adding  Hostheader to
 outgoing request messages. | 
| class  | RequestUserAgentThis request interceptor is responsible for adding  User-Agentheader. | 
| class  | RequestValidateHostThis request interceptor is responsible for copying  Hostheader value toHttpRequest.setAuthority(URIAuthority)of incoming request messages. | 
| class  | ViaRequestThis request interceptor can be used by an HTTP proxy or intemediary to add the
  HttpHeaders.VIAHTTP header to outgoing request messages. | 
| Modifier and Type | Field and Description | 
|---|---|
| static HttpRequestInterceptor | ForwardedRequest. INSTANCESingleton instance. | 
| static HttpRequestInterceptor | RequestTargetHost. INSTANCESingleton instance. | 
| static HttpRequestInterceptor | RequestContent. INSTANCESingleton instance. | 
| static HttpRequestInterceptor | RequestConnControl. INSTANCESingleton instance. | 
| static HttpRequestInterceptor | RequestUserAgent. INSTANCESingleton instance. | 
| static HttpRequestInterceptor | RequestDate. INSTANCESingleton instance. | 
| static HttpRequestInterceptor | ViaRequest. INSTANCESingleton instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpProcessorBuilder | HttpProcessorBuilder. add(HttpRequestInterceptor e) | 
| HttpProcessorBuilder | HttpProcessorBuilder. addAll(HttpRequestInterceptor... e) | 
| HttpProcessorBuilder | HttpProcessorBuilder. addAllFirst(HttpRequestInterceptor... e) | 
| HttpProcessorBuilder | HttpProcessorBuilder. addAllLast(HttpRequestInterceptor... e) | 
| HttpProcessorBuilder | HttpProcessorBuilder. addFirst(HttpRequestInterceptor e) | 
| HttpProcessorBuilder | HttpProcessorBuilder. addLast(HttpRequestInterceptor e) | 
| Constructor and Description | 
|---|
| DefaultHttpProcessor(HttpRequestInterceptor... requestInterceptors) | 
| DefaultHttpProcessor(HttpRequestInterceptor[] requestInterceptors,
                    HttpResponseInterceptor[] responseInterceptors) | 
| Constructor and Description | 
|---|
| DefaultHttpProcessor(List<HttpRequestInterceptor> requestInterceptors,
                    List<HttpResponseInterceptor> responseInterceptors) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | H2RequestConformanceThis request interceptor is responsible for execution of the protocol conformance
 checks on incoming or outgoing HTTP/2 request messages. | 
| class  | H2RequestConnControlHTTP/2 compatible extension of  RequestConnControl. | 
| class  | H2RequestContentHTTP/2 compatible extension of  RequestContent. | 
| class  | H2RequestTargetHostHTTP/2 compatible extension of  RequestTargetHost. | 
| class  | H2RequestValidateHostHTTP/2 compatible extension of  RequestValidateHost. | 
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.