Uses of Interface
java.net.http.HttpClient.Builder
Packages that use HttpClient.Builder
-
Uses of HttpClient.Builder in java.net.http
Methods in java.net.http that return HttpClient.BuilderModifier and TypeMethodDescriptionHttpClient.Builder.authenticator
(Authenticator authenticator) Sets an authenticator to use for HTTP authentication.HttpClient.Builder.connectTimeout
(Duration duration) Sets the connect timeout duration for this client.HttpClient.Builder.cookieHandler
(CookieHandler cookieHandler) Sets a cookie handler.Sets the executor to be used for asynchronous and dependent tasks.HttpClient.Builder.followRedirects
(HttpClient.Redirect policy) Specifies whether requests will automatically follow redirects issued by the server.default HttpClient.Builder
HttpClient.Builder.localAddress
(InetAddress localAddr) Binds the socket to this local address when creating connections for sending requests.static HttpClient.Builder
HttpClient.newBuilder()
Creates a newHttpClient
builder.HttpClient.Builder.priority
(int priority) Sets the default priority for any HTTP/2 requests sent from this client.HttpClient.Builder.proxy
(ProxySelector proxySelector) Sets aProxySelector
.HttpClient.Builder.sslContext
(SSLContext sslContext) Sets anSSLContext
.HttpClient.Builder.sslParameters
(SSLParameters sslParameters) Sets anSSLParameters
.HttpClient.Builder.version
(HttpClient.Version version) Requests a specific HTTP protocol version where possible.