Package ai.vespa.util.http.hc5
Class VespaAsyncHttpClientBuilder
java.lang.Object
ai.vespa.util.http.hc5.VespaAsyncHttpClientBuilder
Async http client builder for internal Vespa communications over http/https.
Configures Vespa mTLS and handles TLS mixed mode automatically.
Client should only be used for requests to Vespa services.
Caveats:
- custom connection manager must be configured through
create(AsyncConnectionManagerFactory)
.- Author:
- bjorncs
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
create()
static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
create
(VespaAsyncHttpClientBuilder.AsyncConnectionManagerFactory factory, HostnameVerifier hostnameVerifier)
-
Constructor Details
-
VespaAsyncHttpClientBuilder
public VespaAsyncHttpClientBuilder()
-
-
Method Details
-
create
public static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder create() -
create
public static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder create(VespaAsyncHttpClientBuilder.AsyncConnectionManagerFactory factory) -
create
public static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder create(VespaAsyncHttpClientBuilder.AsyncConnectionManagerFactory factory, HostnameVerifier hostnameVerifier)
-