Package org.apache.hc.core5.http
Core HTTP transport component APIs.
These deal with the fundamental things required for using the
HTTP protocol, such as representing a
message
including it's
headers
and optional
entity
, and
connections
over which messages are sent. In order to prepare messages
before sending or after receiving, there are interceptors for
requests
and
responses
.
-
Interface Summary Interface Description ClassicHttpRequest 'Classic'HttpRequest
message that can encloseHttpEntity
.ClassicHttpResponse 'Classic'HttpResponse
message that can encloseHttpEntity
.ConnectionReuseStrategy Interface for deciding whether a connection can be re-used for subsequent requests and should be kept alive.ContentLengthStrategy Represents a strategy to determine length of the enclosed content entity based on properties of the HTTP message.EntityDetails Details of an entity transmitted by a message.ExceptionListener FormattedHeader An HTTP header which is already formatted.Header Represents an HTTP header field consisting of a field name and a field value.HeaderElement Represents an element of an HTTPheader
value consisting of a name / value pair and a number of optional name / value parameters.HttpConnection A generic HTTP connection, useful on client and server side.HttpConnectionMetrics The point of access to the statistics of anHttpConnection
.HttpEntity An entity that can be sent or received with an HTTP message.HttpEntityContainer Contains anHttpEntity
.HttpMessage HTTP messages consist of requests from client to server and responses from server to client.HttpRequest A request message from a client to a server includes, within the first line of that message, the method to be applied to the resource, the identifier of the resource, and the protocol version in use.HttpRequestFactory<T extends HttpRequest> A factory forHttpRequest
objects.HttpRequestInterceptor HTTP protocol interceptor is a routine that implements a specific aspect of the HTTP protocol.HttpRequestMapper<T> This class can be used to resolve an object matching a particularHttpRequest
.HttpResponse After receiving and interpreting a request message, a server responds with an HTTP response message.HttpResponseFactory<T extends HttpResponse> A factory forHttpResponse
objects.HttpResponseInterceptor HTTP protocol interceptor is a routine that implements a specific aspect of the HTTP protocol.MessageHeaders Messages head consisting of multiple message headers.NameValuePair A name-value pair parameter used as an element of HTTP messages.ReasonPhraseCatalog Interface for obtaining reason phrases for HTTP status codes.SocketModalCloseable A genericModalCloseable
backed by a network socket. -
Class Summary Class Description Chars Commons chars used by HTTP/1.1 protocol.ContentType Content type information consisting of a MIME type and an optional charset.EndpointDetails HTTP connection endpoint details.HeaderElements Constants for frequently used Header elements.HttpHeaders Constants enumerating standard and common HTTP headers.HttpHost Component that holds all details needed to describe an HTTP connection to a host.HttpStatus Constants enumerating the HTTP status codes.HttpVersion Represents an HTTP version.Message<H extends MessageHeaders,B> Generic message consisting of a message head and a message body.ProtocolVersion Represents a protocol version. -
Enum Summary Enum Description Method Common HTTP methods defined by the HTTP spec.URIScheme Enumerates supported URI schemes. -
Exception Summary Exception Description ConnectionClosedException Signals that the connection has been closed unexpectedly.ConnectionRequestTimeoutException Signals timeout requesting connection.ContentTooLongException Signals that HTTP entity content is too long.HttpException Signals that an HTTP exception has occurred.HttpStreamResetException Signals HTTP protocol error that renders the actual HTTP data stream unreliable.LengthRequiredException Signals message rejection due to missing content length.MalformedChunkCodingException Signals a malformed chunked stream.MessageConstraintException Signals a message constraint violation.MethodNotSupportedException Signals that an HTTP method is not supported.MisdirectedRequestException Signals a misdirected request (the server is not authoritative to handle the request).NoHttpResponseException Signals that the target server failed to respond with a valid HTTP response.NotImplementedException Signals an unsupported / unimplemented feature of the HTTP protocol.ParseException Signals a protocol exception due to failure to parse a message element.ProtocolException Signals that an HTTP protocol violation has occurred.RequestHeaderFieldsTooLargeException Signals request header field length or total field size violation.RequestNotExecutedException ConnectionClosedException
subclass that signals requests cannot not be executed due to the connection being closed.StreamClosedException Signals that data stream has already been closed.TruncatedChunkException Signals a truncated chunk in a chunked stream.UnsupportedHttpVersionException Signals an unsupported version of the HTTP protocol.