abstract HttpClient.Builder |
HttpClient.Builder.authenticator(Authenticator a) |
设置用于HTTP身份验证的身份验证器。
|
abstract HttpClient.Builder |
HttpClient.Builder.cookieManager(CookieManager cookieManager) |
设置一个cookie管理器。
|
abstract HttpClient.Builder |
HttpClient.Builder.executor(Executor executor) |
将执行器设置为用于异步任务。
|
abstract HttpClient.Builder |
HttpClient.Builder.followRedirects(HttpClient.Redirect policy) |
指定请求是否会自动跟踪服务器发出的重定向。
|
static HttpClient.Builder |
HttpClient.newBuilder() |
创建一个新的
HttpClient 构建器。
|
abstract HttpClient.Builder |
HttpClient.Builder.priority(int priority) |
设置从此客户端发送的任何HTTP / 2请求的默认优先级。
|
abstract HttpClient.Builder |
HttpClient.Builder.proxy(ProxySelector selector) |
|
abstract HttpClient.Builder |
HttpClient.Builder.sslContext(SSLContext sslContext) |
设置一个
SSLContext 。
|
abstract HttpClient.Builder |
HttpClient.Builder.sslParameters(SSLParameters sslParameters) |
设置一个
SSLParameters 。
|
abstract HttpClient.Builder |
HttpClient.Builder.version(HttpClient.Version version) |
在可能的情况下请求特定的HTTP协议版本。
|