Package ai.vespa.util.http.hc5
Class VespaHttpClientBuilder
java.lang.Object
ai.vespa.util.http.hc5.VespaHttpClientBuilder
Sync HTTP client builder for internal Vespa communications over http/https.
Configures Vespa mTLS and handles TLS mixed mode automatically.
Custom connection managers must be configured through
create(HttpClientConnectionManagerFactory)
.- Author:
- jonmv
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.hc.client5.http.impl.classic.HttpClientBuilder
create()
static org.apache.hc.client5.http.impl.classic.HttpClientBuilder
create
(VespaHttpClientBuilder.HttpClientConnectionManagerFactory connectionManagerFactory) static org.apache.hc.client5.http.impl.classic.HttpClientBuilder
create
(VespaHttpClientBuilder.HttpClientConnectionManagerFactory connectionManagerFactory, HostnameVerifier hostnameVerifier) static org.apache.hc.client5.http.impl.classic.HttpClientBuilder
create
(VespaHttpClientBuilder.HttpClientConnectionManagerFactory connectionManagerFactory, HostnameVerifier hostnameVerifier, boolean rewriteHttpToHttps)
-
Constructor Details
-
VespaHttpClientBuilder
public VespaHttpClientBuilder()
-
-
Method Details
-
create
public static org.apache.hc.client5.http.impl.classic.HttpClientBuilder create() -
create
public static org.apache.hc.client5.http.impl.classic.HttpClientBuilder create(VespaHttpClientBuilder.HttpClientConnectionManagerFactory connectionManagerFactory) -
create
public static org.apache.hc.client5.http.impl.classic.HttpClientBuilder create(VespaHttpClientBuilder.HttpClientConnectionManagerFactory connectionManagerFactory, HostnameVerifier hostnameVerifier) -
create
public static org.apache.hc.client5.http.impl.classic.HttpClientBuilder create(VespaHttpClientBuilder.HttpClientConnectionManagerFactory connectionManagerFactory, HostnameVerifier hostnameVerifier, boolean rewriteHttpToHttps)
-