Uses of Interface java.net.http.HttpClient.Builder (Java SE 26 & JDK 26)
Description: use: module: java.net.http, package: java.net.http, class: HttpClient, interface: Builder

# Uses of Interface
java.net.http.HttpClient.Builder

Packages that use HttpClient.Builder
Package
Description
java.net.http
HTTP Client and WebSocket APIs

- ## Uses of HttpClient.Builder in java.net.http

  Methods in java.net.http that return HttpClient.Builder
  Modifier and Type
  Method
  Description
  `HttpClient.Builder`
  HttpClient.Builder.`authenticator(Authenticator authenticator)`
  Sets an authenticator to use for HTTP authentication.
  `HttpClient.Builder`
  HttpClient.Builder.`connectTimeout(Duration duration)`
  Sets the connect timeout duration for this client.
  `HttpClient.Builder`
  HttpClient.Builder.`cookieHandler(CookieHandler cookieHandler)`
  Sets a cookie handler.
  `HttpClient.Builder`
  HttpClient.Builder.`executor(Executor executor)`
  Sets the executor to be used for asynchronous and dependent tasks.
  `HttpClient.Builder`
  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 new `HttpClient` builder.
  `HttpClient.Builder`
  HttpClient.Builder.`priority(int priority)`
  Sets the default priority for any HTTP/2 requests sent from this client.
  `HttpClient.Builder`
  HttpClient.Builder.`proxy(ProxySelector proxySelector)`
  Sets a `ProxySelector`.
  `HttpClient.Builder`
  HttpClient.Builder.`sslContext(SSLContext sslContext)`
  Sets an `SSLContext`.
  `HttpClient.Builder`
  HttpClient.Builder.`sslParameters(SSLParameters sslParameters)`
  Sets an `SSLParameters`.
  `HttpClient.Builder`
  HttpClient.Builder.`version(HttpClient.Version version)`
  Sets the default preferred HTTP protocol version for requests issued by this client.