Interface HttpClientFactory

  • All Superinterfaces:
    Function<io.vertx.core.http.HttpClientOptions,​io.vertx.core.http.HttpClient>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface HttpClientFactory
    extends Function<io.vertx.core.http.HttpClientOptions,​io.vertx.core.http.HttpClient>
    Abstraction to create http clients.
    • Method Detail

      • createHttpClient

        io.vertx.core.http.HttpClient createHttpClient​(io.vertx.core.http.HttpClientOptions opts)
        Parameters:
        opts - Options to configure the http client.
        Returns:
        The requested HttpClient.
      • apply

        default io.vertx.core.http.HttpClient apply​(io.vertx.core.http.HttpClientOptions opts)
        Specified by:
        apply in interface Function<io.vertx.core.http.HttpClientOptions,​io.vertx.core.http.HttpClient>