Package org.apache.hc.core5.http.protocol
package org.apache.hc.core5.http.protocol
Core HTTP protocol interceptors.
-
ClassDescriptionDefault implementation of
HttpContext.ChainBuilder<E>Builder class to build a linked list (chain) of unique class instances.Default immutable implementation ofHttpProcessor.HttpContext represents execution state of an HTTP process.Implementation ofHttpContextthat provides convenience setters for user assignable attributes and getter for readable attributes.Generates a date in the format required by the HTTP protocol.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.Builder forHttpProcessorinstances.A lookup registry.RequestConnControl is responsible for addingConnectionheader to the outgoing requests, which is essential for managing persistence ofHTTP/1.0connections.RequestContent is the most important interceptor for outgoing requests.RequestDate interceptor is responsible for addingDateheader to the outgoing requests This interceptor is optional for client side protocol processors.RequestExpectContinue is responsible for enabling the 'expect-continue' handshake by addingExpectheader.Generic registry of request handlers that can be resolved by properties of request messages.RequestHostOutgoing is responsible for addingHostheader to the outgoing message.RequestUserAgent is responsible for addingUser-Agentheader.RequestTargetHost is responsible for copyingHostheader value toHttpRequest.setAuthority(URIAuthority)of the incoming message.ResponseConnControl is responsible for addingConnectionheader to the outgoing responses, which is essential for managing persistence ofHTTP/1.0connections.ResponseContent is the most important interceptor for outgoing responses.ResponseDate is responsible for addingDateheader to the outgoing responses.ResponseServer is responsible for addingServerheader.Maintains a map of objects keyed by a request URI pattern.Maintains a map of objects keyed by a request URI pattern.Maintains a map of objects keyed by a request URI regular expression.