public class HttpClientBuilder extends Object
HttpClient.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<HttpClientBuilder> |
__TYPE_ARG |
| Constructor and Description |
|---|
HttpClientBuilder(HttpClientBuilder delegate) |
HttpClientBuilder(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
HttpClient |
build()
Build and return the client.
|
boolean |
equals(Object o) |
HttpClientBuilder |
getDelegate() |
int |
hashCode() |
static HttpClientBuilder |
newInstance(HttpClientBuilder arg) |
String |
toString() |
HttpClientBuilder |
with(HttpClientOptions options)
Configure the client options.
|
HttpClientBuilder |
with(PoolOptions options)
Configure the client with the given pool
options. |
HttpClientBuilder |
withConnectHandler(Handler<HttpConnection> handler)
Set a connection handler for the client.
|
HttpClientBuilder |
withRedirectHandler(java.util.function.Function<HttpClientResponse,Future<RequestOptions>> handler)
Set a redirect handler for the http client.
|
HttpClientBuilder |
withRedirectHandler(Function<HttpClientResponse,Single<RequestOptions>> handler)
Set a redirect handler for the http client.
|
public static final io.vertx.lang.rx.TypeArg<HttpClientBuilder> __TYPE_ARG
public HttpClientBuilder(HttpClientBuilder delegate)
public HttpClientBuilder(Object delegate)
public HttpClientBuilder getDelegate()
public HttpClientBuilder with(HttpClientOptions options)
options - the client optionspublic HttpClientBuilder with(PoolOptions options)
options.options - the pool optionspublic HttpClientBuilder withConnectHandler(Handler<HttpConnection> handler)
handler - public HttpClientBuilder withRedirectHandler(java.util.function.Function<HttpClientResponse,Future<RequestOptions>> handler)
The redirect handler is called when a 3xx response is received and the request is configured to
follow redirects with HttpClientRequest.setFollowRedirects(boolean).
The redirect handler is passed the HttpClientResponse, it can return an HttpClientRequest or null.
Future is returned, the client will send this new request
The handler must return a Future unsent so the client can further configure it and send it.
handler - the new redirect handlerpublic HttpClientBuilder withRedirectHandler(Function<HttpClientResponse,Single<RequestOptions>> handler)
The redirect handler is called when a 3xx response is received and the request is configured to
follow redirects with HttpClientRequest.setFollowRedirects(boolean).
The redirect handler is passed the HttpClientResponse, it can return an HttpClientRequest or null.
Future is returned, the client will send this new request
The handler must return a Future unsent so the client can further configure it and send it.
handler - the new redirect handlerpublic HttpClient build()
public static HttpClientBuilder newInstance(HttpClientBuilder arg)
Copyright © 2023 Eclipse. All rights reserved.