Package org.apache.hc.core5.http
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
.
-
ClassDescriptionCommons chars used by HTTP/1.1 protocol.'Classic'
HttpRequest
message that can encloseHttpEntity
.'Classic'HttpResponse
message that can encloseHttpEntity
.Signals that the connection has been closed unexpectedly.Signals timeout requesting connection.Interface for deciding whether a connection can be re-used for subsequent requests and should be kept alive.Represents a strategy to determine length of the enclosed content entity based on properties of the HTTP message.Signals that HTTP entity content is too long.Content type information consisting of a MIME type and an optional charset.HTTP connection endpoint details.Details of an entity transmitted by a message.An HTTP header which is already formatted.Represents an HTTP header field consisting of a field name and a field value.Represents an element of an HTTPheader
value consisting of a name / value pair and a number of optional name / value parameters.Constants for frequently used Header elements.A generic HTTP connection, useful on client and server side.The point of access to the statistics of anHttpConnection
.An entity that can be sent or received with an HTTP message.Contains anHttpEntity
.Signals that an HTTP exception has occurred.Constants enumerating standard and common HTTP headers.Component that holds all details needed to describe an HTTP connection to a host.HTTP messages consist of requests from client to server and responses from server to client.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.HTTP protocol interceptor is a routine that implements a specific aspect of the HTTP protocol.This class can be used to resolve an object matching a particularHttpRequest
.After receiving and interpreting a request message, a server responds with an HTTP response message.HttpResponseFactory<T extends HttpResponse>A factory forHttpResponse
objects.HTTP protocol interceptor is a routine that implements a specific aspect of the HTTP protocol.Constants enumerating the HTTP status codes.Signals HTTP protocol error that renders the actual HTTP data stream unreliable.Represents an HTTP version.Signals message rejection due to missing content length.Signals a malformed chunked stream.Generic message consisting of a message head and a message body.Signals a message constraint violation.Messages head consisting of multiple message headers.Common HTTP methods defined by the HTTP spec.Signals that an HTTP method is not supported.Signals a misdirected request (the server is not authoritative to handle the request).A name-value pair parameter used as an element of HTTP messages.Signals that the target server failed to respond with a valid HTTP response.Signals an unsupported / unimplemented feature of the HTTP protocol.Signals a protocol exception due to failure to parse a message element.Signals that an HTTP protocol violation has occurred.Represents a protocol version.Interface for obtaining reason phrases for HTTP status codes.Signals request header field length or total field size violation.ConnectionClosedException
subclass that signals requests cannot not be executed due to the connection being closed.A genericModalCloseable
backed by a network socket.Signals that data stream has already been closed.Signals a truncated chunk in a chunked stream.Signals an unsupported version of the HTTP protocol.Enumerates supported URI schemes.