Class HttpClientBuilder

java.lang.Object
io.vertx.mutiny.core.http.HttpClientBuilder
All Implemented Interfaces:
MutinyDelegate

public class HttpClientBuilder extends Object implements MutinyDelegate
A builder for HttpClient.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

  • Constructor Details

    • HttpClientBuilder

      public HttpClientBuilder(io.vertx.core.http.HttpClientBuilder delegate)
    • HttpClientBuilder

      public HttpClientBuilder(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.core.http.HttpClientBuilder getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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)