Top Description Interfaces Classes
[default module]

Package org.apache.hc.client5.http.impl.classic


Classic HTTP client API implementation that supports HTTP/1.1 transport only. This implementation is mostly API compatible with HttpClient 4.5. Please use the asynchronous client API implementation for HTTP/2 transport.

Interface Summary

Modifier and TypeInterface and Description
pack-priv interface

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractBackoff

AbstractBackoff is an abstract class that provides a common implementation for managing backoff behavior in HttpClient connection pool.

public abstract class
AbstractHttpClientResponseHandler<T>

A generic HttpClientResponseHandler that works with the response entity for successful (2xx) responses.

public class
AIMDBackoffManager

The AIMDBackoffManager applies an additive increase, multiplicative decrease (AIMD) to managing a dynamic limit to the number of connections allowed to a given host.

public class
BackoffStrategyExec

Request execution handler in the classic request execution chain that is responsible for execution of an ConnectionBackoffStrategy.

public class
BasicHttpClientResponseHandler

A org.apache.hc.core5.http.io.HttpClientResponseHandler that returns the response body as a String for successful (2xx) responses.

public class
public abstract class
CloseableHttpClient

Base implementation of HttpClient that also implements ModalCloseable.

public class
CloseableHttpResponse

Provided for backward compatibility with HttpClient 4.x.

public class
ConnectExec

Request execution handler in the classic request execution chain that is responsible for establishing connection to the target origin server as specified by the current connection route.

public class
ContentCompressionExec

Request execution handler in the classic request execution chain that is responsible for automatic response content decompression.

public class
DefaultBackoffStrategy

This ConnectionBackoffStrategy backs off either for a raw network socket or connection timeout or if the server explicitly sends a 429 (Too Many Requests) or a 503 (Service Unavailable) response.

pack-priv class
public class
ExponentialBackoffManager

A backoff manager implementation that uses an exponential backoff algorithm to adjust the maximum number of connections per HTTP route.

public class
FutureRequestExecutionMetrics

Collection of different counters used to gather metrics for FutureRequestExecutionService.

public class
FutureRequestExecutionService

This class schedules message execution execution and processing as FutureTasks with the provided ExecutorService.

public class
HttpClientBuilder

Builder for CloseableHttpClient instances.

public class
HttpClients

Factory methods for CloseableHttpClient instances.

pack-priv class
public class
HttpRequestRetryExec

Request executor in the request execution chain that is responsible for making a decision whether a request that failed due to an I/O exception or received a specific response from the target server should be re-executed.

pack-priv class
pack-priv class
pack-priv class
InternalHttpClient

Internal implementation of CloseableHttpClient.

public class
LinearBackoffManager

An implementation of BackoffManager that uses a linear backoff strategy to adjust the maximum number of connections per route in an org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.

public class
MainClientExec

Usually the last request execution handler in the classic request execution chain that is responsible for execution of request / response exchanges with the opposite endpoint.

public class
MinimalHttpClient

Minimal implementation of CloseableHttpClient.

public class
NullBackoffStrategy

This is a ConnectionBackoffStrategy that never backs off, for compatibility with existing behavior.

public class
ProtocolExec

Request execution handler in the classic request execution chain that is responsible for implementation of HTTP specification requirements.

public class
ProxyClient

ProxyClient can be used to establish a tunnel via an HTTP/1.1 proxy.

public class
RedirectExec

Request execution handler in the classic request execution chain responsible for handling of request redirects.

public class
RequestAbortedException

Signals that the request has been aborted.

pack-priv class
public class
RequestFailedException

Signals that the request has been aborted or failed due to an expected condition.

pack-priv class
pack-priv class