Uses of Interface
java.net.http.HttpClient.Builder
-
Packages that use HttpClient.Builder 软件包 描述 java.net.http HTTP客户端和WebSocket API -
-
Uses of HttpClient.Builder in java.net.http
Methods in java.net.http that return HttpClient.Builder 变量和类型 方法 描述 HttpClient.Builder
HttpClient.Builder. authenticator(Authenticator authenticator)
设置用于HTTP身份验证的身份验证器。HttpClient.Builder
HttpClient.Builder. connectTimeout(Duration duration)
设置此客户端的连接超时持续时间。HttpClient.Builder
HttpClient.Builder. cookieHandler(CookieHandler cookieHandler)
设置cookie处理程序。HttpClient.Builder
HttpClient.Builder. executor(Executor executor)
设置用于异步和从属任务的执行程序。HttpClient.Builder
HttpClient.Builder. followRedirects(HttpClient.Redirect policy)
指定请求是否将自动遵循服务器发出的重定向。static HttpClient.Builder
HttpClient. newBuilder()
创建一个新的HttpClient
构建器。HttpClient.Builder
HttpClient.Builder. priority(int priority)
设置从此客户端发送的任何HTTP / 2请求的默认优先级。HttpClient.Builder
HttpClient.Builder. proxy(ProxySelector proxySelector)
设置ProxySelector
。HttpClient.Builder
HttpClient.Builder. sslContext(SSLContext sslContext)
设置SSLContext
。HttpClient.Builder
HttpClient.Builder. sslParameters(SSLParameters sslParameters)
设置SSLParameters
。HttpClient.Builder
HttpClient.Builder. version(HttpClient.Version version)
尽可能请求特定的HTTP协议版本。
-