Modifier and Type | Method | Description |
---|---|---|
abstract HttpClient.Builder |
HttpClient.Builder.authenticator(Authenticator a) |
Sets an authenticator to use for HTTP authentication.
|
abstract HttpClient.Builder |
HttpClient.Builder.cookieManager(CookieManager cookieManager) |
Sets a cookie manager.
|
abstract HttpClient.Builder |
HttpClient.Builder.executor(Executor executor) |
Sets the executor to be used for asynchronous tasks.
|
abstract HttpClient.Builder |
HttpClient.Builder.followRedirects(HttpClient.Redirect policy) |
Specifies whether requests will automatically follow redirects issued
by the server.
|
static HttpClient.Builder |
HttpClient.newBuilder() |
Creates a new
HttpClient builder. |
abstract HttpClient.Builder |
HttpClient.Builder.priority(int priority) |
Sets the default priority for any HTTP/2 requests sent from this
client.
|
abstract HttpClient.Builder |
HttpClient.Builder.proxy(ProxySelector selector) |
Sets a
ProxySelector for this client. |
abstract HttpClient.Builder |
HttpClient.Builder.sslContext(SSLContext sslContext) |
Sets an
SSLContext . |
abstract HttpClient.Builder |
HttpClient.Builder.sslParameters(SSLParameters sslParameters) |
Sets an
SSLParameters . |
abstract HttpClient.Builder |
HttpClient.Builder.version(HttpClient.Version version) |
Requests a specific HTTP protocol version where possible.
|
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2015, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b161-1