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 theoriginalnon 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 HttpClientbuild()booleanequals(Object o)io.vertx.core.http.HttpClientBuildergetDelegate()inthashCode()static HttpClientBuildernewInstance(io.vertx.core.http.HttpClientBuilder arg)StringtoString()HttpClientBuilderwith(io.vertx.core.http.HttpClientOptions options)HttpClientBuilderwith(io.vertx.core.http.PoolOptions options)HttpClientBuilderwithConnectHandler(Consumer<HttpConnection> handler)HttpClientBuilderwithRedirectHandler(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)
-
-