Uses of Class
org.apache.hc.client5.http.config.RequestConfig.Builder
Packages that use RequestConfig.Builder
-
Uses of RequestConfig.Builder in org.apache.hc.client5.http.config
Methods in org.apache.hc.client5.http.config that return RequestConfig.BuilderModifier and TypeMethodDescriptionstatic RequestConfig.BuilderRequestConfig.copy(RequestConfig config) static RequestConfig.BuilderRequestConfig.custom()RequestConfig.Builder.setAuthenticationEnabled(boolean authenticationEnabled) Determines whether authentication should be handled automatically.RequestConfig.Builder.setCircularRedirectsAllowed(boolean circularRedirectsAllowed) Determines whether circular redirects (redirects to the same location) should be allowed.RequestConfig.Builder.setConnectionKeepAlive(org.apache.hc.core5.util.TimeValue connectionKeepAlive) Determines the default of value of connection keep-alive time period when not explicitly communicated by the origin server with aKeep-Aliveresponse header.RequestConfig.Builder.setConnectionRequestTimeout(long connectionRequestTimeout, TimeUnit timeUnit) RequestConfig.Builder.setConnectionRequestTimeout(org.apache.hc.core5.util.Timeout connectionRequestTimeout) Returns the connection lease request timeout used when requesting a connection from the connection manager.RequestConfig.Builder.setConnectTimeout(long connectTimeout, TimeUnit timeUnit) Deprecated.RequestConfig.Builder.setConnectTimeout(org.apache.hc.core5.util.Timeout connectTimeout) Deprecated.RequestConfig.Builder.setContentCompressionEnabled(boolean contentCompressionEnabled) Determines whether the target server is requested to compress content.RequestConfig.Builder.setCookieSpec(String cookieSpec) Determines the name of the cookie specification to be used for HTTP state management.RequestConfig.Builder.setDefaultKeepAlive(long defaultKeepAlive, TimeUnit timeUnit) RequestConfig.Builder.setExpectContinueEnabled(boolean expectContinueEnabled) Determines whether the 'Expect: 100-Continue' handshake is enabled for entity enclosing methods.RequestConfig.Builder.setHardCancellationEnabled(boolean hardCancellationEnabled) Determines whether request cancellation, such as throughFuture#cancel(boolean), should kill the underlying connection.RequestConfig.Builder.setMaxRedirects(int maxRedirects) Returns the maximum number of redirects to be followed.RequestConfig.Builder.setProxy(org.apache.hc.core5.http.HttpHost proxy) Deprecated.UseDefaultProxyRoutePlanneror a customHttpRoutePlanner.RequestConfig.Builder.setProxyPreferredAuthSchemes(Collection<String> proxyPreferredAuthSchemes) Determines the order of preference for supported authentication schemes by their names when authenticating with the proxy host.RequestConfig.Builder.setRedirectsEnabled(boolean redirectsEnabled) Determines whether redirects should be handled automatically.RequestConfig.Builder.setResponseTimeout(long responseTimeout, TimeUnit timeUnit) RequestConfig.Builder.setResponseTimeout(org.apache.hc.core5.util.Timeout responseTimeout) Determines the timeout until arrival of a response from the opposite endpoint.RequestConfig.Builder.setTargetPreferredAuthSchemes(Collection<String> targetPreferredAuthSchemes) Determines the order of preference for supported authentication schemes by their names when authenticating with the target host.
ConnectionConfig.Builder.setConnectTimeout(long, TimeUnit).