public interface WebHttpClient
Modifier and Type | Method and Description |
---|---|
static WebHttpClientBuilder |
builder()
Returns a builder to construct a WebHttpClient.
|
long |
getConnectionTimeOutMillis()
Returns the connect timeout duration in milliseconds for this client.
|
HttpVersion |
getHttpVersion()
Returns the HTTP version for this client.
|
Proxy |
getProxy()
Returns the proxy for this client.
|
long |
getSocketTimeoutMillis()
Returns the socket timeout duration in milliseconds for this client.
|
CompletableFuture<WebHttpResponse> |
sendAsync(WebHttpRequest request)
Sends the request asynchronously using this client.
|
HttpVersion getHttpVersion()
Proxy getProxy()
long getConnectionTimeOutMillis()
long getSocketTimeoutMillis()
CompletableFuture<WebHttpResponse> sendAsync(WebHttpRequest request)
request
- the HTTP requeststatic WebHttpClientBuilder builder()