Package org.apache.hc.client5.http.impl.classic
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.
-
ClassDescriptionAbstractBackoff is an abstract class that provides a common implementation for managing backoff behavior in HttpClient connection pool.A generic
HttpClientResponseHandler
that works with the response entity for successful (2xx) responses.TheAIMDBackoffManager
applies an additive increase, multiplicative decrease (AIMD) to managing a dynamic limit to the number of connections allowed to a given host.Request execution handler in the classic request execution chain that is responsible for execution of anConnectionBackoffStrategy
.AHttpClientResponseHandler
that returns the response body as a String for successful (2xx) responses.Deprecated.Base implementation ofHttpClient
that also implementsModalCloseable
.Provided for backward compatibility with HttpClient 4.x.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.Request execution handler in the classic request execution chain that is responsible for automatic response content decompression.ThisConnectionBackoffStrategy
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.A backoff manager implementation that uses an exponential backoff algorithm to adjust the maximum number of connections per HTTP route.Collection of different counters used to gather metrics forFutureRequestExecutionService
.A counter that can measure duration and number of events.This class schedules message execution execution and processing asFutureTask
s with the providedExecutorService
.Builder forCloseableHttpClient
instances.Factory methods forCloseableHttpClient
instances.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.Internal implementation ofCloseableHttpClient
.An implementation ofBackoffManager
that uses a linear backoff strategy to adjust the maximum number of connections per route in anPoolingHttpClientConnectionManager
.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.Minimal implementation ofCloseableHttpClient
.This is aConnectionBackoffStrategy
that never backs off, for compatibility with existing behavior.Request execution handler in the classic request execution chain that is responsible for implementation of HTTP specification requirements.ProxyClient can be used to establish a tunnel via an HTTP/1.1 proxy.Request execution handler in the classic request execution chain responsible for handling of request redirects.Signals that the request has been aborted.Signals that the request has been aborted or failed due to an expected condition.
ClassicRequestBuilder