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
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.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultHttpProcessor
Default immutable implementation of
HttpProcessor . |
class |
RequestConnControl
RequestConnControl is responsible for adding
Connection header
to the outgoing requests, which is essential for managing persistence of
HTTP/1.0 connections. |
class |
RequestContent
RequestContent is the most important interceptor for outgoing requests.
|
class |
RequestDate
RequestDate interceptor is responsible for adding
Date header
to the outgoing requests This interceptor is optional for client side
protocol processors. |
class |
RequestExpectContinue
RequestExpectContinue is responsible for enabling the 'expect-continue'
handshake by adding
Expect header. |
class |
RequestTargetHost
RequestHostOutgoing is responsible for adding
Host header to the outgoing message. |
class |
RequestUserAgent
RequestUserAgent is responsible for adding
User-Agent header. |
class |
RequestValidateHost
RequestTargetHost is responsible for copying
Host header value to
HttpRequest.setAuthority(URIAuthority) of the incoming message. |
Modifier and Type | Field and Description |
---|---|
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.
|
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 |
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.