Uses of Class
org.apache.hc.client5.http.impl.async.H2AsyncClientBuilder
Packages that use H2AsyncClientBuilder
Package
Description
Asynchronous HTTP client API implementation that supports both
HTTP/2 and HTTP/1.1 transport.
Caching API implementation for both the classic and
the asynchronous HTTP transports.
-
Uses of H2AsyncClientBuilder in org.apache.hc.client5.http.impl.async
Methods in org.apache.hc.client5.http.impl.async that return H2AsyncClientBuilderModifier and TypeMethodDescriptionfinal H2AsyncClientBuilder
H2AsyncClientBuilder.addExecInterceptorAfter
(String existing, String name, AsyncExecChainHandler interceptor) Adds this execution interceptor after interceptor with the given name.final H2AsyncClientBuilder
H2AsyncClientBuilder.addExecInterceptorBefore
(String existing, String name, AsyncExecChainHandler interceptor) Adds this execution interceptor before an existing interceptor.final H2AsyncClientBuilder
H2AsyncClientBuilder.addExecInterceptorFirst
(String name, AsyncExecChainHandler interceptor) Add an interceptor to the head of the processing list.final H2AsyncClientBuilder
H2AsyncClientBuilder.addExecInterceptorLast
(String name, AsyncExecChainHandler interceptor) Add an interceptor to the tail of the processing list.final H2AsyncClientBuilder
H2AsyncClientBuilder.addRequestInterceptorFirst
(org.apache.hc.core5.http.HttpRequestInterceptor interceptor) Adds this protocol interceptor to the head of the protocol processing list.final H2AsyncClientBuilder
H2AsyncClientBuilder.addRequestInterceptorLast
(org.apache.hc.core5.http.HttpRequestInterceptor interceptor) Adds this protocol interceptor to the tail of the protocol processing list.final H2AsyncClientBuilder
H2AsyncClientBuilder.addResponseInterceptorFirst
(org.apache.hc.core5.http.HttpResponseInterceptor interceptor) Adds this protocol interceptor to the head of the protocol processing list.final H2AsyncClientBuilder
H2AsyncClientBuilder.addResponseInterceptorLast
(org.apache.hc.core5.http.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/2CloseableHttpAsyncClient
instances optimized for HTTP/2 protocol and message multiplexingfinal H2AsyncClientBuilder
H2AsyncClientBuilder.disableAuthCaching()
Disables authentication scheme caching.final H2AsyncClientBuilder
H2AsyncClientBuilder.disableAutomaticRetries()
Disables automatic request recovery and re-execution.final H2AsyncClientBuilder
H2AsyncClientBuilder.disableCookieManagement()
Disables state (cookie) management.final H2AsyncClientBuilder
H2AsyncClientBuilder.disableRedirectHandling()
Disables automatic redirect handling.final H2AsyncClientBuilder
H2AsyncClientBuilder.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.final H2AsyncClientBuilder
H2AsyncClientBuilder.replaceExecInterceptor
(String existing, AsyncExecChainHandler interceptor) Replace an existing interceptor with the given name with new interceptor.final H2AsyncClientBuilder
H2AsyncClientBuilder.setCharCodingConfig
(org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig) SetsCharCodingConfig
configuration.final H2AsyncClientBuilder
H2AsyncClientBuilder.setConnectionConfigResolver
(org.apache.hc.core5.function.Resolver<org.apache.hc.core5.http.HttpHost, ConnectionConfig> connectionConfigResolver) AssignsResolver
forConnectionConfig
on a per host basis.final H2AsyncClientBuilder
H2AsyncClientBuilder.setDefaultAuthSchemeRegistry
(org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> authSchemeRegistry) Assigns defaultAuthScheme
registry which will be used for request execution if not explicitly set in the client execution context.final H2AsyncClientBuilder
H2AsyncClientBuilder.setDefaultConnectionConfig
(ConnectionConfig connectionConfig) Assigns the sameConnectionConfig
for all hosts.final H2AsyncClientBuilder
H2AsyncClientBuilder.setDefaultCookieSpecRegistry
(org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> cookieSpecRegistry) Assigns defaultCookieSpec
registry which will be used for request execution if not explicitly set in the client execution context.final H2AsyncClientBuilder
H2AsyncClientBuilder.setDefaultCookieStore
(CookieStore cookieStore) Assigns defaultCookieStore
instance which will be used for request execution if not explicitly set in the client execution context.final H2AsyncClientBuilder
H2AsyncClientBuilder.setDefaultCredentialsProvider
(CredentialsProvider credentialsProvider) Assigns defaultCredentialsProvider
instance which will be used for request execution if not explicitly set in the client execution context.final H2AsyncClientBuilder
H2AsyncClientBuilder.setDefaultHeaders
(Collection<? extends org.apache.hc.core5.http.Header> defaultHeaders) Assigns default request header values.final H2AsyncClientBuilder
H2AsyncClientBuilder.setDefaultRequestConfig
(RequestConfig config) Assigns defaultRequestConfig
instance which will be used for request execution if not explicitly set in the client execution context.final H2AsyncClientBuilder
H2AsyncClientBuilder.setDnsResolver
(DnsResolver dnsResolver) AssignsDnsResolver
instance.final H2AsyncClientBuilder
H2AsyncClientBuilder.setH2Config
(org.apache.hc.core5.http2.config.H2Config h2Config) SetsH2Config
configuration.final H2AsyncClientBuilder
H2AsyncClientBuilder.setIOReactorConfig
(org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig) SetsIOReactorConfig
configuration.final H2AsyncClientBuilder
H2AsyncClientBuilder.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.final H2AsyncClientBuilder
H2AsyncClientBuilder.setIoSessionDecorator
(org.apache.hc.core5.function.Decorator<org.apache.hc.core5.reactor.IOSession> ioSessionDecorator) Sets theIOSession
Decorator
that will be use with the client's IOReactor.final H2AsyncClientBuilder
H2AsyncClientBuilder.setIOSessionListener
(org.apache.hc.core5.reactor.IOSessionListener ioSessionListener) SetsIOSessionListener
listener.final H2AsyncClientBuilder
H2AsyncClientBuilder.setProxyAuthenticationStrategy
(AuthenticationStrategy proxyAuthStrategy) AssignsAuthenticationStrategy
instance for proxy authentication.H2AsyncClientBuilder.setRedirectStrategy
(RedirectStrategy redirectStrategy) AssignsRedirectStrategy
instance.final H2AsyncClientBuilder
H2AsyncClientBuilder.setRetryStrategy
(HttpRequestRetryStrategy retryStrategy) AssignsHttpRequestRetryStrategy
instance.final H2AsyncClientBuilder
H2AsyncClientBuilder.setRoutePlanner
(HttpRoutePlanner routePlanner) AssignsHttpRoutePlanner
instance.final H2AsyncClientBuilder
H2AsyncClientBuilder.setSchemePortResolver
(SchemePortResolver schemePortResolver) AssignsSchemePortResolver
instance.final H2AsyncClientBuilder
H2AsyncClientBuilder.setTargetAuthenticationStrategy
(AuthenticationStrategy targetAuthStrategy) AssignsAuthenticationStrategy
instance for target host authentication.final H2AsyncClientBuilder
H2AsyncClientBuilder.setThreadFactory
(ThreadFactory threadFactory) AssignsThreadFactory
instance.final H2AsyncClientBuilder
H2AsyncClientBuilder.setTlsStrategy
(org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy) AssignsTlsStrategy
instance.final H2AsyncClientBuilder
H2AsyncClientBuilder.setUserAgent
(String userAgent) AssignsUser-Agent
value.final H2AsyncClientBuilder
H2AsyncClientBuilder.useSystemProperties()
Use system properties when creating and configuring default implementations. -
Uses of H2AsyncClientBuilder in org.apache.hc.client5.http.impl.cache
Subclasses of H2AsyncClientBuilder in org.apache.hc.client5.http.impl.cacheModifier and TypeClassDescriptionclass
Builder for HTTP/2CloseableHttpAsyncClient
instances capable of client-side caching.