Set the authentication that will be used for all requests.
The directory to be used for caching.
Is HTTP compression enforced.
Is HTTP compression enforced. (Default: false
)
The maximum time an HttpClient
can wait when connecting to a remote host.
The maximum time an HttpClient
can wait when connecting to a remote host. (Default: 120s)
The maximum time that a connection should live for in the pool.
Whether raw URL should be used.
Whether raw URL should be used. (Default: false)
Is HTTP redirect enabled.
Is HTTP redirect enabled. (Default: true
)
The maximum time an HttpClient
waits until the stream is framed.
The maximum time an HttpClient
waits until the stream is framed. (Default: 200ms)
Whether connection pooling should be used.
Whether connection pooling should be used. (Default: true
)
The maximum size of the cache.
The maximum total number of connections.
The maximum total number of connections. -1 means no maximum.
The maximum number of connections to make per host.
The maximum number of connections to make per host. -1 means no maximum.
The maximum size of a stream fragment.
The maximum size of a stream fragment. (Default: 1M)
The maximum number of redirects.
The maximum number of redirects. (Default: 5)
The maximum number of times to retry a request if it fails.
The maximum number of times to retry a request if it fails. (Default: 5)
The time after which a connection that has been idle in the pool should be closed.
The maximum time an HttpClient
can stay idle.
The maximum time an HttpClient
can stay idle. (Default: 120s)
The maximum time an HttpClient
waits until the response is completed.
The maximum time an HttpClient
waits until the response is completed. (Default: 120s)
The SSL configuration.
Sets whether HttpClient
should use the default http.proxy* system properties
to obtain proxy information.
Sets whether HttpClient
should use the default http.proxy* system properties
to obtain proxy information. (Default: true
)
This differs from useProxySelector(boolean)
in that HttpClient will use its own logic to handle the system properties,
potentially supporting other protocols that the the JDK ProxySelector doesn't.
If useProxyProperties is set to true
but useProxySelector
was also set to true, the latter is preferred.
See http://download.oracle.com/javase/1.4.2/docs/guide/net/properties.html
The USER_AGENT header value
The maximum accepted size of a websocket message fragment.
The maximum accepted size of a websocket message fragment. (Default: 1M)