public interface WebHttpClientBuilder
| Modifier and Type | Method and Description |
|---|---|
WebHttpClient |
build()
Builds a WebHttpClient.
|
WebHttpClientBuilder |
withConnectionTimeout(long value,
TimeUnit timeUnit)
Sets the connect timeout duration of the client.
|
WebHttpClientBuilder |
withHttpVersion(HttpVersion version)
Sets the HTTP version to the client.
|
WebHttpClientBuilder |
withProxy(Proxy proxy)
Sets the proxy to the client.
|
WebHttpClientBuilder |
withSocketTimeout(long value,
TimeUnit timeUnit)
Sets the socket timeout duration of the client.
|
WebHttpClientBuilder withHttpVersion(HttpVersion version)
version - the HTTP versionWebHttpClientBuilder withProxy(Proxy proxy)
proxy - the proxyWebHttpClientBuilder withConnectionTimeout(long value, TimeUnit timeUnit)
value - the connect timeout durationtimeUnit - the connect timeout time unitWebHttpClientBuilder withSocketTimeout(long value, TimeUnit timeUnit)
value - the socket timeout durationtimeUnit - the socket timeout time unitWebHttpClient build()