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 |
HttpProcessor
Collects 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 |
DefaultHttpProcessor
Default immutable implementation of
HttpProcessor . |
class |
ForwardedRequest
This request interceptor can be used by an HTTP proxy or an intermediary to add a Forwarded header
to outgoing request messages.
|
class |
RequestConformance
This request interceptor is responsible for execution of the protocol conformance
checks on incoming request messages.
|
class |
RequestConnControl
This request interceptor is responsible for adding
Connection header
to outgoing requests, which is essential for managing persistence of
HTTP/1.0 connections. |
class |
RequestContent
This request interceptor is responsible for delimiting the message content
by adding
Content-Length or Transfer-Content headers based
on the properties of the enclosed entity and the protocol version. |
class |
RequestDate
This request interceptor is responsible for adding
Date header
to outgoing request messages. |
class |
RequestExpectContinue
This request interceptor is responsible for activation of the 'expect-continue'
handshake by adding a
Expect header describing client expectations. |
class |
RequestTargetHost
This request interceptor is responsible for adding
Host header to
outgoing request messages. |
class |
RequestUserAgent
This request interceptor is responsible for adding
User-Agent header. |
class |
RequestValidateHost
This request interceptor is responsible for copying
Host header value to
HttpRequest.setAuthority(URIAuthority) of incoming request messages. |
class |
ViaRequest
This request interceptor can be used by an HTTP proxy or intemediary to add the
HttpHeaders.VIA HTTP header to outgoing request messages. |
Modifier and Type | Field and Description |
---|---|
static HttpRequestInterceptor |
ForwardedRequest.INSTANCE
Singleton instance.
|
static HttpRequestInterceptor |
RequestTargetHost.INSTANCE
Singleton instance.
|
static HttpRequestInterceptor |
RequestContent.INSTANCE
Singleton instance.
|
static HttpRequestInterceptor |
RequestConnControl.INSTANCE
Singleton instance.
|
static HttpRequestInterceptor |
RequestUserAgent.INSTANCE
Singleton instance.
|
static HttpRequestInterceptor |
RequestDate.INSTANCE
Singleton instance.
|
static HttpRequestInterceptor |
ViaRequest.INSTANCE
Singleton 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 |
H2RequestConformance
This request interceptor is responsible for execution of the protocol conformance
checks on incoming or outgoing HTTP/2 request messages.
|
class |
H2RequestConnControl
HTTP/2 compatible extension of
RequestConnControl . |
class |
H2RequestContent
HTTP/2 compatible extension of
RequestContent . |
class |
H2RequestTargetHost
HTTP/2 compatible extension of
RequestTargetHost . |
class |
H2RequestValidateHost
HTTP/2 compatible extension of
RequestValidateHost . |
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.