Package io.vertx.mutiny.core.http
Class HttpClientBuilder
- java.lang.Object
-
- io.vertx.mutiny.core.http.HttpClientBuilder
-
public class HttpClientBuilder extends Object
A builder forHttpClient
. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<HttpClientBuilder>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description HttpClientBuilder(io.vertx.core.http.HttpClientBuilder delegate)
HttpClientBuilder(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpClient
build()
boolean
equals(Object o)
io.vertx.core.http.HttpClientBuilder
getDelegate()
int
hashCode()
static HttpClientBuilder
newInstance(io.vertx.core.http.HttpClientBuilder arg)
String
toString()
HttpClientBuilder
with(io.vertx.core.http.HttpClientOptions options)
HttpClientBuilder
with(io.vertx.core.http.PoolOptions options)
HttpClientBuilder
withConnectHandler(Consumer<HttpConnection> handler)
HttpClientBuilder
withRedirectHandler(Function<HttpClientResponse,io.smallrye.mutiny.Uni<io.vertx.core.http.RequestOptions>> handler)
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<HttpClientBuilder> __TYPE_ARG
-
-
Constructor Detail
-
HttpClientBuilder
public HttpClientBuilder(io.vertx.core.http.HttpClientBuilder delegate)
-
HttpClientBuilder
public HttpClientBuilder(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.core.http.HttpClientBuilder getDelegate()
-
with
public HttpClientBuilder with(io.vertx.core.http.HttpClientOptions options)
- Parameters:
options
- the client options- Returns:
- a reference to this, so the API can be used fluently
-
with
public HttpClientBuilder with(io.vertx.core.http.PoolOptions options)
- Parameters:
options
- the pool options- Returns:
- a reference to this, so the API can be used fluently
-
withConnectHandler
public HttpClientBuilder withConnectHandler(Consumer<HttpConnection> handler)
- Parameters:
handler
-- Returns:
-
withRedirectHandler
public HttpClientBuilder withRedirectHandler(Function<HttpClientResponse,io.smallrye.mutiny.Uni<io.vertx.core.http.RequestOptions>> handler)
- Parameters:
handler
- the new redirect handler- Returns:
- a reference to this, so the API can be used fluently
-
build
public HttpClient build()
- Returns:
- the client as configured by this builder
-
newInstance
public static HttpClientBuilder newInstance(io.vertx.core.http.HttpClientBuilder arg)
-
-