Package | Description |
---|---|
org.apache.hc.client5.http.impl.async |
Asynchronous HTTP client API implementation that supports both
HTTP/2 and HTTP/1.1 transport.
|
Modifier and Type | Method and Description |
---|---|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.addExecInterceptorAfter(String existing,
String name,
AsyncExecChainHandler interceptor)
Adds this execution interceptor after interceptor with the given name.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.addExecInterceptorBefore(String existing,
String name,
AsyncExecChainHandler interceptor)
Adds this execution interceptor before an existing interceptor.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.addExecInterceptorFirst(String name,
AsyncExecChainHandler interceptor)
Add an interceptor to the head of the processing list.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.addExecInterceptorLast(String name,
AsyncExecChainHandler interceptor)
Add an interceptor to the tail of the processing list.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.addRequestInterceptorFirst(org.apache.hc.core5.http.HttpRequestInterceptor interceptor)
Adds this protocol interceptor to the head of the protocol processing list.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.addRequestInterceptorLast(org.apache.hc.core5.http.HttpRequestInterceptor interceptor)
Adds this protocol interceptor to the tail of the protocol processing list.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.addResponseInterceptorFirst(org.apache.hc.core5.http.HttpResponseInterceptor interceptor)
Adds this protocol interceptor to the head of the protocol processing list.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.addResponseInterceptorLast(org.apache.hc.core5.http.HttpResponseInterceptor interceptor)
Adds this protocol interceptor to the tail of the protocol processing list.
|
static HttpAsyncClientBuilder |
HttpAsyncClientBuilder.create() |
static HttpAsyncClientBuilder |
HttpAsyncClients.custom()
Creates builder object for construction of custom
CloseableHttpAsyncClient instances. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.disableAuthCaching()
Disables authentication scheme caching.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.disableAutomaticRetries()
Disables automatic request recovery and re-execution.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.disableConnectionState()
Disables connection state tracking.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.disableCookieManagement()
Disables state (cookie) management.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.disableRedirectHandling()
Disables automatic redirect handling.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.evictExpiredConnections()
Makes this instance of HttpClient proactively evict expired connections from the
connection pool using a background thread.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.evictIdleConnections(org.apache.hc.core5.util.TimeValue maxIdleTime)
Makes this instance of HttpClient proactively evict idle connections from the
connection pool using a background thread.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.replaceExecInterceptor(String existing,
AsyncExecChainHandler interceptor)
Replace an existing interceptor with the given name with new interceptor.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setCharCodingConfig(org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig)
Sets
CharCodingConfig configuration. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setConnectionManager(AsyncClientConnectionManager connManager)
Sets
AsyncClientConnectionManager instance. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setConnectionManagerShared(boolean shared)
Defines the connection manager is to be shared by multiple
client instances.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setConnectionReuseStrategy(org.apache.hc.core5.http.ConnectionReuseStrategy reuseStrategy)
Sets
ConnectionReuseStrategy instance. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setDefaultAuthSchemeRegistry(org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> authSchemeRegistry)
Sets default
AuthScheme registry which will
be used for request execution if not explicitly set in the client execution
context. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setDefaultCookieSpecRegistry(org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> cookieSpecRegistry)
Sets default
CookieSpec registry
which will be used for request execution if not explicitly set in the client
execution context. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setDefaultCookieStore(CookieStore cookieStore)
Sets default
CookieStore instance which will be used for
request execution if not explicitly set in the client execution context. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setDefaultCredentialsProvider(CredentialsProvider credentialsProvider)
Sets default
CredentialsProvider instance which will be used
for request execution if not explicitly set in the client execution
context. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setDefaultHeaders(Collection<? extends org.apache.hc.core5.http.Header> defaultHeaders)
Sets default request header values.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setDefaultRequestConfig(RequestConfig config)
Sets default
RequestConfig instance which will be used
for request execution if not explicitly set in the client execution
context. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setH2Config(org.apache.hc.core5.http2.config.H2Config h2Config)
Sets
H2Config configuration. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setHttp1Config(org.apache.hc.core5.http.config.Http1Config h1Config)
Sets
Http1Config configuration. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setIOReactorConfig(org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
Sets
IOReactorConfig configuration. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setIoReactorExceptionCallback(org.apache.hc.core5.function.Callback<Exception> ioReactorExceptionCallback)
Sets the callback that will be invoked when the client's IOReactor encounters an uncaught exception.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setIoSessionDecorator(org.apache.hc.core5.function.Decorator<org.apache.hc.core5.reactor.IOSession> ioSessionDecorator)
Sets the
IOSession Decorator that will be use with the client's IOReactor. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setIOSessionListener(org.apache.hc.core5.reactor.IOSessionListener ioSessionListener)
Sets
IOSessionListener listener. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setKeepAliveStrategy(ConnectionKeepAliveStrategy keepAliveStrategy)
Sets
ConnectionKeepAliveStrategy instance. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setProxy(org.apache.hc.core5.http.HttpHost proxy)
Sets default proxy value.
|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setProxyAuthenticationStrategy(AuthenticationStrategy proxyAuthStrategy)
Sets
AuthenticationStrategy instance for proxy
authentication. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setProxySelector(ProxySelector proxySelector)
Sets the
ProxySelector that will be used to select the proxies
to be used for establishing HTTP connections. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setRedirectStrategy(RedirectStrategy redirectStrategy)
Sets
RedirectStrategy instance. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setRetryStrategy(HttpRequestRetryStrategy retryStrategy)
Sets
HttpRequestRetryStrategy instance. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setRoutePlanner(HttpRoutePlanner routePlanner)
Sets
HttpRoutePlanner instance. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setSchemePortResolver(SchemePortResolver schemePortResolver)
Sets
SchemePortResolver instance. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setTargetAuthenticationStrategy(AuthenticationStrategy targetAuthStrategy)
Sets
AuthenticationStrategy instance for target
host authentication. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setThreadFactory(ThreadFactory threadFactory)
Sets
ThreadFactory instance. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setUserAgent(String userAgent)
Sets
User-Agent value. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setUserTokenHandler(UserTokenHandler userTokenHandler)
Sets
UserTokenHandler instance. |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setVersionPolicy(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy)
Deprecated.
Use
TlsConfig and connection manager methods |
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.useSystemProperties()
Use system properties when creating and configuring default
implementations.
|
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.