Package ai.vespa.util.http.hc5
Class VespaAsyncHttpClientBuilder
- java.lang.Object
-
- ai.vespa.util.http.hc5.VespaAsyncHttpClientBuilder
-
public class VespaAsyncHttpClientBuilder extends Object
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 throughcreate(AsyncConnectionManagerFactory)
.- Author:
- bjorncs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VespaAsyncHttpClientBuilder.AsyncConnectionManagerFactory
-
Constructor Summary
Constructors Constructor Description VespaAsyncHttpClientBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
create()
static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
create(VespaAsyncHttpClientBuilder.AsyncConnectionManagerFactory factory)
static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
create(VespaAsyncHttpClientBuilder.AsyncConnectionManagerFactory factory, HostnameVerifier hostnameVerifier)
-
-
-
Method Detail
-
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)
-
-