Package org.swisspush.gateleen.core.http
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 Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default io.vertx.core.http.HttpClientapply(io.vertx.core.http.HttpClientOptions opts)io.vertx.core.http.HttpClientcreateHttpClient(io.vertx.core.http.HttpClientOptions opts)static HttpClientFactoryof(io.vertx.core.Vertx vertx)
-
-
-
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)
-
of
static HttpClientFactory of(io.vertx.core.Vertx vertx)
-
-