| Package | Description | 
|---|---|
| org.apache.hc.client5.http | Client component APIs common to all client transports
 such as connection route information and resolution
 as well as common HTTP method definitions and
 exception classes. | 
| org.apache.hc.client5.http.async | HTTP client APIs based on the asynchronous, event driven I/O model. | 
| org.apache.hc.client5.http.cache | Caching APIs for both the classic and the asynchronous
 HTTP transports. | 
| org.apache.hc.client5.http.classic | HTTP client APIs based on the classic (blocking) I/O model. | 
| org.apache.hc.client5.http.protocol | HTTP protocol interceptors that enable advanced functionality
 such as HTTP state management and authentication state caching. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpClientContext | ContextBuilder. build() | 
| Modifier and Type | Field and Description | 
|---|---|
| HttpClientContext | AsyncExecChain.Scope. clientContext | 
| Modifier and Type | Method and Description | 
|---|---|
| Cancellable | AsyncExecRuntime. acquireEndpoint(String id,
               HttpRoute route,
               Object state,
               HttpClientContext context,
               FutureCallback<AsyncExecRuntime> callback)Initiates operation to acquire a connection endpoint. | 
| Cancellable | AsyncExecRuntime. connectEndpoint(HttpClientContext context,
               FutureCallback<AsyncExecRuntime> callback)Initiates operation to connect the local endpoint to the initial hop (connection
 target in case of a direct route or to the first proxy hop in case of a route
 via a proxy or multiple proxies). | 
| Cancellable | AsyncExecRuntime. execute(String id,
       AsyncClientExchangeHandler exchangeHandler,
       HttpClientContext context)Initiates a message exchange using the given handler. | 
| void | AsyncExecRuntime. upgradeTls(HttpClientContext context)Upgrades transport security of the active connection by using the TLS security protocol. | 
| default void | AsyncExecRuntime. upgradeTls(HttpClientContext context,
          FutureCallback<AsyncExecRuntime> callback)Upgrades transport security of the active connection by using the TLS security protocol. | 
| Constructor and Description | 
|---|
| Scope(String exchangeId,
     HttpRoute route,
     HttpRequest originalRequest,
     CancellableDependency cancellableDependency,
     HttpClientContext clientContext,
     AsyncExecRuntime execRuntime)Deprecated. 
 Use  Scope#Scope(String, HttpRoute, HttpRequest, CancellableDependency, HttpClientContext,
 AsyncExecRuntime, Scheduler, AtomicInteger) | 
| Scope(String exchangeId,
     HttpRoute route,
     HttpRequest originalRequest,
     CancellableDependency cancellableDependency,
     HttpClientContext clientContext,
     AsyncExecRuntime execRuntime,
     AsyncExecChain.Scheduler scheduler,
     AtomicInteger execCount) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | HttpCacheContextAdaptor class that provides convenience type safe setters and getters
 for caching  HttpContextattributes. | 
| Modifier and Type | Field and Description | 
|---|---|
| HttpClientContext | ExecChain.Scope. clientContext | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ExecRuntime. acquireEndpoint(String id,
               HttpRoute route,
               Object state,
               HttpClientContext context)Acquires a connection endpoint. | 
| void | ExecRuntime. connectEndpoint(HttpClientContext context)Connect the local endpoint to the initial hop (connection target in case
 of a direct route or to the first proxy hop in case of a route via a proxy
 or multiple proxies). | 
| ClassicHttpResponse | ExecRuntime. execute(String id,
       ClassicHttpRequest request,
       HttpClientContext context)Executes HTTP request using the given context. | 
| void | ExecRuntime. upgradeTls(HttpClientContext context)Upgrades transport security of the active connection by using the TLS security protocol. | 
| Constructor and Description | 
|---|
| Scope(String exchangeId,
     HttpRoute route,
     ClassicHttpRequest originalRequest,
     ExecRuntime execRuntime,
     HttpClientContext clientContext) | 
| Modifier and Type | Method and Description | 
|---|---|
| static HttpClientContext | HttpClientContext. adapt(HttpContext context) | 
| static HttpClientContext | HttpClientContext. create() | 
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.