public abstract static class HttpClient.Builder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.time.Duration |
connectionTimeout |
protected java.net.Proxy |
proxy |
protected java.time.Duration |
readTimeout |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HttpClient.Builder |
connectionTimeout(java.time.Duration duration)
Set the connection timeout to a given value.
|
abstract HttpClient |
createClient(java.net.URL url) |
HttpClient.Builder |
proxy(java.net.Proxy proxy)
|
HttpClient.Builder |
readTimeout(java.time.Duration duration)
Set the read timeout to a given value.
|
protected java.time.Duration connectionTimeout
protected java.time.Duration readTimeout
protected java.net.Proxy proxy
public HttpClient.Builder connectionTimeout(java.time.Duration duration)
0
results in unspecified behaviour.public HttpClient.Builder readTimeout(java.time.Duration duration)
0
results in unspecified behaviour.public HttpClient.Builder proxy(java.net.Proxy proxy)
Proxy
that should be used by the HttpClient
(not the
WebDriver
instance!). If this is not set, then an implementation
specific method for selecting a proxy will be used.public abstract HttpClient createClient(java.net.URL url)