| 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 |
|---|---|
H2AsyncClientBuilder |
H2AsyncClientBuilder.addExecInterceptorAfter(String existing,
String name,
AsyncExecChainHandler interceptor)
Adds this execution interceptor after interceptor with the given name.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.addExecInterceptorBefore(String existing,
String name,
AsyncExecChainHandler interceptor)
Adds this execution interceptor before an existing interceptor.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.addExecInterceptorFirst(String name,
AsyncExecChainHandler interceptor)
Add an interceptor to the head of the processing list.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.addExecInterceptorLast(String name,
AsyncExecChainHandler interceptor)
Add an interceptor to the tail of the processing list.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.addRequestInterceptorFirst(HttpRequestInterceptor interceptor)
Adds this protocol interceptor to the head of the protocol processing list.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.addRequestInterceptorLast(HttpRequestInterceptor interceptor)
Adds this protocol interceptor to the tail of the protocol processing list.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.addResponseInterceptorFirst(HttpResponseInterceptor interceptor)
Adds this protocol interceptor to the head of the protocol processing list.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.addResponseInterceptorLast(HttpResponseInterceptor interceptor)
Adds this protocol interceptor to the tail of the protocol processing list.
|
static H2AsyncClientBuilder |
H2AsyncClientBuilder.create() |
static H2AsyncClientBuilder |
HttpAsyncClients.customHttp2()
Creates builder object for construction of custom HTTP/2
CloseableHttpAsyncClient instances optimized for HTTP/2 protocol
and message multiplexing |
H2AsyncClientBuilder |
H2AsyncClientBuilder.disableAuthCaching()
Disables authentication scheme caching.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.disableAutomaticRetries()
Disables automatic request recovery and re-execution.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.disableCookieManagement()
Disables state (cookie) management.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.disableRedirectHandling()
Disables automatic redirect handling.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.disableRequestPriority()
Disable installing the HTTP/2 Priority header interceptor by default.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.evictIdleConnections(TimeValue maxIdleTime)
Makes this instance of HttpClient proactively evict idle connections from the
connection pool using a background thread.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.replaceExecInterceptor(String existing,
AsyncExecChainHandler interceptor)
Replace an existing interceptor with the given name with new interceptor.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.setCharCodingConfig(CharCodingConfig charCodingConfig)
Sets
CharCodingConfig configuration. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setConnectionConfigResolver(Resolver<HttpHost,ConnectionConfig> connectionConfigResolver)
Sets
Resolver for ConnectionConfig on a per host basis. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setDefaultAuthSchemeRegistry(Lookup<AuthSchemeFactory> authSchemeRegistry)
Sets default
AuthScheme registry which will
be used for request execution if not explicitly set in the client execution
context. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setDefaultConnectionConfig(ConnectionConfig connectionConfig)
Sets the same
ConnectionConfig for all hosts. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setDefaultCookieSpecRegistry(Lookup<CookieSpecFactory> cookieSpecRegistry)
Sets default
CookieSpec registry
which will be used for request execution if not explicitly set in the client
execution context. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setDefaultCookieStore(CookieStore cookieStore)
Sets default
CookieStore instance which will be used for
request execution if not explicitly set in the client execution context. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setDefaultCredentialsProvider(CredentialsProvider credentialsProvider)
Sets default
CredentialsProvider instance which will be used
for request execution if not explicitly set in the client execution
context. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setDefaultHeaders(Collection<? extends Header> defaultHeaders)
Sets default request header values.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.setDefaultRequestConfig(RequestConfig config)
Sets default
RequestConfig instance which will be used
for request execution if not explicitly set in the client execution
context. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setDnsResolver(DnsResolver dnsResolver)
Sets
DnsResolver instance. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setH2Config(H2Config h2Config)
Sets
H2Config configuration. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setIOReactorConfig(IOReactorConfig ioReactorConfig)
Sets
IOReactorConfig configuration. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setIoReactorExceptionCallback(Callback<Exception> ioReactorExceptionCallback)
Sets the callback that will be invoked when the client's IOReactor encounters an uncaught exception.
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.setIoSessionDecorator(Decorator<IOSession> ioSessionDecorator)
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.setIOSessionListener(IOSessionListener ioSessionListener)
Sets
IOSessionListener listener. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setProxyAuthenticationStrategy(AuthenticationStrategy proxyAuthStrategy)
Sets
AuthenticationStrategy instance for proxy
authentication. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setRedirectStrategy(RedirectStrategy redirectStrategy)
Sets
RedirectStrategy instance. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setRetryStrategy(HttpRequestRetryStrategy retryStrategy)
Sets
HttpRequestRetryStrategy instance. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setRoutePlanner(HttpRoutePlanner routePlanner)
Sets
HttpRoutePlanner instance. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setSchemePortResolver(SchemePortResolver schemePortResolver)
Sets
SchemePortResolver instance. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setTargetAuthenticationStrategy(AuthenticationStrategy targetAuthStrategy)
Sets
AuthenticationStrategy instance for target
host authentication. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setThreadFactory(ThreadFactory threadFactory)
Sets
ThreadFactory instance. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setTlsStrategy(TlsStrategy tlsStrategy)
Sets
TlsStrategy instance. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.setUserAgent(String userAgent)
Sets
User-Agent value. |
H2AsyncClientBuilder |
H2AsyncClientBuilder.useSystemProperties()
Use system properties when creating and configuring default
implementations.
|
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.