HttpClient.
| Modifier and Type | Method and Description |
|---|---|
| public HttpClient | |
| public HttpClientBuilder | Returns: a reference to this, so the API can be used fluentlythe client options options)Configure the client options. |
| public HttpClientBuilder | Returns: a reference to this, so the API can be used fluentlythe pool options options)Configure the client with the given pool |
| public HttpClientBuilder | Returns: a reference to this, so the API can be used fluentlySet a connection handler for the client. |
| public HttpClientBuilder | Returns: a reference to this, so the API can be used fluentlythe new redirect handler handler)Set a redirect handler for the http client. |
| build | back to summary |
|---|---|
| public HttpClient build() Build and return the client.
| |
| with | back to summary |
|---|---|
| public HttpClientBuilder with(HttpClientOptions options) Configure the client options.
| |
| with | back to summary |
|---|---|
| public HttpClientBuilder with(PoolOptions options) Configure the client with the given pool
| |
| withConnectHandler | back to summary |
|---|---|
| public HttpClientBuilder withConnectHandler(Handler<HttpConnection> handler) Set a connection handler for the client. This handler is called when a new connection is established.
| |
| withRedirectHandler | back to summary |
|---|---|
| public HttpClientBuilder withRedirectHandler(Function<HttpClientResponse, Future<RequestOptions>> handler) Set a redirect handler for the http client.
The redirect handler is called when a
The redirect handler is passed the
The handler must return a
| |