Top Description Interfaces Classes Enums
[default module]

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

Modifier and TypeInterface and Description
public interface
ClassicHttpRequest

'Classic' HttpRequest message that can enclose HttpEntity.

public interface
ClassicHttpResponse

'Classic' HttpResponse message that can enclose HttpEntity.

public interface
ConnectionReuseStrategy

Interface for deciding whether a connection can be re-used for subsequent requests and should be kept alive.

public interface
ContentLengthStrategy

Represents a strategy to determine length of the enclosed content entity based on properties of the HTTP message.

public interface
EntityDetails

Details of an entity transmitted by a message.

public interface
public interface
FormattedHeader

An HTTP header which is already formatted.

public interface
Header

Represents an HTTP header field consisting of a field name and a field value.

public interface
HeaderElement

Represents an element of an HTTP header value consisting of a name / value pair and a number of optional name / value parameters.

public interface
HttpConnection

A generic HTTP connection, useful on client and server side.

public interface
HttpConnectionMetrics

The point of access to the statistics of an HttpConnection.

public interface
HttpEntity

An entity that can be sent or received with an HTTP message.

public interface
public interface
HttpMessage

HTTP messages consist of requests from client to server and responses from server to client.

public interface
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.

public interface
HttpRequestFactory<T extends HttpRequest>

A factory for HttpRequest objects.

public interface
HttpRequestInterceptor

HTTP protocol interceptor is a routine that implements a specific aspect of the HTTP protocol.

public interface
HttpRequestMapper<T>

This class can be used to resolve an object matching a particular HttpRequest.

public interface
HttpResponse

After receiving and interpreting a request message, a server responds with an HTTP response message.

public interface
HttpResponseFactory<T extends HttpResponse>

A factory for HttpResponse objects.

public interface
HttpResponseInterceptor

HTTP protocol interceptor is a routine that implements a specific aspect of the HTTP protocol.

public interface
MessageHeaders

Messages head consisting of multiple message headers.

public interface
NameValuePair

A name-value pair parameter used as an element of HTTP messages.

public interface
ReasonPhraseCatalog

Interface for obtaining reason phrases for HTTP status codes.

public interface
SocketModalCloseable

A generic ModalCloseable backed by a network socket.

Class Summary

Modifier and TypeClass and Description
public class
Chars

Commons chars used by HTTP/1.1 protocol.

public class
ConnectionClosedException

Signals that the connection has been closed unexpectedly.

public class
ConnectionRequestTimeoutException

Signals timeout requesting connection.

public class
ContentTooLongException

Signals that HTTP entity content is too long.

public class
ContentType

Content type information consisting of a MIME type and an optional charset.

public abstract class
EndpointDetails

HTTP connection endpoint details.

public class
HeaderElements

Constants for frequently used Header elements.

public class
HttpException

Signals that an HTTP exception has occurred.

public class
HttpHeaders

Constants enumerating standard and common HTTP headers.

public class
HttpHost

Component that holds all details needed to describe an HTTP connection to a host.

public class
HttpStatus

Constants enumerating the HTTP status codes.

public class
HttpStreamResetException

Signals HTTP protocol error that renders the actual HTTP data stream unreliable.

public class
HttpVersion

Represents an HTTP version.

public class
LengthRequiredException

Signals message rejection due to missing content length.

public class
MalformedChunkCodingException

Signals a malformed chunked stream.

public class
Message<
message head type.
H extends MessageHeaders
,
message body type.
B
>

Generic message consisting of a message head and a message body.

public class
MessageConstraintException

Signals a message constraint violation.

public class
MethodNotSupportedException

Signals that an HTTP method is not supported.

public class
MisdirectedRequestException

Signals a misdirected request (the server is not authoritative to handle the request).

public class
NoHttpResponseException

Signals that the target server failed to respond with a valid HTTP response.

public class
NotImplementedException

Signals an unsupported / unimplemented feature of the HTTP protocol.

public class
ParseException

Signals a protocol exception due to failure to parse a message element.

public class
ProtocolException

Signals that an HTTP protocol violation has occurred.

public class
ProtocolVersion

Represents a protocol version.

public class
RequestHeaderFieldsTooLargeException

Signals request header field length or total field size violation.

public class
RequestNotExecutedException

ConnectionClosedException subclass that signals requests cannot not be executed due to the connection being closed.

public class
StreamClosedException

Signals that data stream has already been closed.

public class
TruncatedChunkException

Signals a truncated chunk in a chunked stream.

public class
UnsupportedHttpVersionException

Signals an unsupported version of the HTTP protocol.

Enum Summary

Modifier and TypeEnum and Description
public enum
Method

Common HTTP methods defined by the HTTP spec.

public enum
URIScheme

Enumerates supported URI schemes.