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.
-
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 H2AsyncClientBuilderH2AsyncClientBuilder.addExecInterceptorAfter(String existing, String name, AsyncExecChainHandler interceptor) Adds this execution interceptor after interceptor with the given name.final H2AsyncClientBuilderH2AsyncClientBuilder.addExecInterceptorBefore(String existing, String name, AsyncExecChainHandler interceptor) Adds this execution interceptor before an existing interceptor.final H2AsyncClientBuilderH2AsyncClientBuilder.addExecInterceptorFirst(String name, AsyncExecChainHandler interceptor) Add an interceptor to the head of the processing list.final H2AsyncClientBuilderH2AsyncClientBuilder.addExecInterceptorLast(String name, AsyncExecChainHandler interceptor) Add an interceptor to the tail of the processing list.final H2AsyncClientBuilderH2AsyncClientBuilder.addRequestInterceptorFirst(org.apache.hc.core5.http.HttpRequestInterceptor interceptor) Adds this protocol interceptor to the head of the protocol processing list.final H2AsyncClientBuilderH2AsyncClientBuilder.addRequestInterceptorLast(org.apache.hc.core5.http.HttpRequestInterceptor interceptor) Adds this protocol interceptor to the tail of the protocol processing list.final H2AsyncClientBuilderH2AsyncClientBuilder.addResponseInterceptorFirst(org.apache.hc.core5.http.HttpResponseInterceptor interceptor) Adds this protocol interceptor to the head of the protocol processing list.final H2AsyncClientBuilderH2AsyncClientBuilder.addResponseInterceptorLast(org.apache.hc.core5.http.HttpResponseInterceptor interceptor) Adds this protocol interceptor to the tail of the protocol processing list.static H2AsyncClientBuilderH2AsyncClientBuilder.create()final H2AsyncClientBuilderH2AsyncClientBuilder.disableAuthCaching()Disables authentication scheme caching.final H2AsyncClientBuilderH2AsyncClientBuilder.disableAutomaticRetries()Disables automatic request recovery and re-execution.final H2AsyncClientBuilderH2AsyncClientBuilder.disableCookieManagement()Disables state (cookie) management.final H2AsyncClientBuilderH2AsyncClientBuilder.disableRedirectHandling()Disables automatic redirect handling.final H2AsyncClientBuilderH2AsyncClientBuilder.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 H2AsyncClientBuilderH2AsyncClientBuilder.replaceExecInterceptor(String existing, AsyncExecChainHandler interceptor) Replace an existing interceptor with the given name with new interceptor.final H2AsyncClientBuilderH2AsyncClientBuilder.setCharCodingConfig(org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig) SetsCharCodingConfigconfiguration.final H2AsyncClientBuilderH2AsyncClientBuilder.setDefaultAuthSchemeRegistry(org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> authSchemeRegistry) Assigns defaultAuthSchemeregistry which will be used for request execution if not explicitly set in the client execution context.final H2AsyncClientBuilderH2AsyncClientBuilder.setDefaultCookieSpecRegistry(org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> cookieSpecRegistry) Assigns defaultCookieSpecregistry which will be used for request execution if not explicitly set in the client execution context.final H2AsyncClientBuilderH2AsyncClientBuilder.setDefaultCookieStore(CookieStore cookieStore) Assigns defaultCookieStoreinstance which will be used for request execution if not explicitly set in the client execution context.final H2AsyncClientBuilderH2AsyncClientBuilder.setDefaultCredentialsProvider(CredentialsProvider credentialsProvider) Assigns defaultCredentialsProviderinstance which will be used for request execution if not explicitly set in the client execution context.final H2AsyncClientBuilderH2AsyncClientBuilder.setDefaultHeaders(Collection<? extends org.apache.hc.core5.http.Header> defaultHeaders) Assigns default request header values.final H2AsyncClientBuilderH2AsyncClientBuilder.setDefaultRequestConfig(RequestConfig config) Assigns defaultRequestConfiginstance which will be used for request execution if not explicitly set in the client execution context.final H2AsyncClientBuilderH2AsyncClientBuilder.setDnsResolver(DnsResolver dnsResolver) AssignsDnsResolverinstance.final H2AsyncClientBuilderH2AsyncClientBuilder.setH2Config(org.apache.hc.core5.http2.config.H2Config h2Config) SetsH2Configconfiguration.final H2AsyncClientBuilderH2AsyncClientBuilder.setIOReactorConfig(org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig) SetsIOReactorConfigconfiguration.final H2AsyncClientBuilderH2AsyncClientBuilder.setProxyAuthenticationStrategy(AuthenticationStrategy proxyAuthStrategy) AssignsAuthenticationStrategyinstance for proxy authentication.H2AsyncClientBuilder.setRedirectStrategy(RedirectStrategy redirectStrategy) AssignsRedirectStrategyinstance.final H2AsyncClientBuilderH2AsyncClientBuilder.setRetryStrategy(HttpRequestRetryStrategy retryStrategy) AssignsHttpRequestRetryStrategyinstance.final H2AsyncClientBuilderH2AsyncClientBuilder.setRoutePlanner(HttpRoutePlanner routePlanner) AssignsHttpRoutePlannerinstance.final H2AsyncClientBuilderH2AsyncClientBuilder.setSchemePortResolver(SchemePortResolver schemePortResolver) AssignsSchemePortResolverinstance.final H2AsyncClientBuilderH2AsyncClientBuilder.setTargetAuthenticationStrategy(AuthenticationStrategy targetAuthStrategy) AssignsAuthenticationStrategyinstance for target host authentication.final H2AsyncClientBuilderH2AsyncClientBuilder.setThreadFactory(ThreadFactory threadFactory) AssignsThreadFactoryinstance.final H2AsyncClientBuilderH2AsyncClientBuilder.setTlsStrategy(org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy) AssignsTlsStrategyinstance.final H2AsyncClientBuilderH2AsyncClientBuilder.setUserAgent(String userAgent) AssignsUser-Agentvalue.final H2AsyncClientBuilderH2AsyncClientBuilder.useSystemProperties()Use system properties when creating and configuring default implementations.