Uses of Interface
io.avaje.http.client.HttpClient.Builder
-
Uses of HttpClient.Builder in io.avaje.http.client
Modifier and TypeMethodDescriptionHttpClient.Builder.authenticator
(Authenticator authenticator) Set a HttpClient authenticator to the underlyingHttpClient
.HttpClient.Builder.authTokenProvider
(AuthTokenProvider authTokenProvider) Add a Authorization token provider.Set the base URL to use for requests created from the context.HttpClient.Builder.bodyAdapter
(BodyAdapter adapter) Set the body adapter to use to convert beans to body content and response content back to beans.static HttpClient.Builder
HttpClient.builder()
Return the builder to config and build the client context.HttpClient.Builder.client
(HttpClient client) Set the underlying HttpClient to use.HttpClient.Builder.configureWith
(io.avaje.inject.BeanScope beanScope) Configure BodyAdapter and RetryHandler using dependency injection BeanScope.HttpClient.Builder.connectionTimeout
(Duration connectionTimeout) Set the connection timeout to use.HttpClient.Builder.cookieHandler
(CookieHandler cookieHandler) Specify a cookie handler to use on the HttpClient.Specify the Executor to use for asynchronous tasks.HttpClient.Builder.globalErrorMapper
(Function<HttpException, RuntimeException> errorMapper) Set the default mapper to be used to transformHttpException
into a different kind of exception.HttpClient.Builder.priority
(int priority) Set the priority for HTTP/2 requests to the underlyingHttpClient
.HttpClient.Builder.proxy
(ProxySelector proxySelector) Set the proxy to the underlyingHttpClient
.HttpClient.Builder.redirect
(HttpClient.Redirect redirect) Specify the redirect policy.HttpClient.Builder.requestIntercept
(RequestIntercept... requestIntercept) Add a request interceptor.HttpClient.Builder.requestListener
(RequestListener... requestListener) Add a request listener.HttpClient.Builder.requestLogging
(boolean requestLogging) Disable or enable built in request and response logging.HttpClient.Builder.requestTimeout
(Duration requestTimeout) Set the default request timeout.HttpClient.Builder.retryHandler
(RetryHandler retryHandler) Set a RetryHandler to use to retry requests.HttpClient.Builder.sslContext
(SSLContext sslContext) Set the sslContext to the underlyingHttpClient
.HttpClient.Builder.sslParameters
(SSLParameters sslParameters) Set the sslParameters to the underlyingHttpClient
.HttpClient.Builder.version
(HttpClient.Version version) Specify the HTTP version.