Uses of Interface
io.avaje.http.client.HttpClientContext.Builder
-
Uses of HttpClientContext.Builder in io.avaje.http.client
Methods in io.avaje.http.client that return HttpClientContext.BuilderModifier and TypeMethodDescriptionHttpClientContext.Builder.authenticator(Authenticator authenticator) Set a HttpClient authenticator to the underlyingHttpClient.HttpClientContext.Builder.authTokenProvider(AuthTokenProvider authTokenProvider) Add a Authorization token provider.Set the base URL to use for requests created from the context.HttpClientContext.Builder.bodyAdapter(BodyAdapter adapter) Set the body adapter to use to convert beans to body content and response content back to beans.static HttpClientContext.BuilderHttpClientContext.builder()Deprecated.HttpClientContext.Builder.client(HttpClient client) Set the underlying HttpClient to use.HttpClientContext.Builder.configureWith(io.avaje.inject.BeanScope beanScope) Configure BodyAdapter and RetryHandler using dependency injection BeanScope.HttpClientContext.Builder.connectionTimeout(Duration connectionTimeout) Set the connection timeout to use.HttpClientContext.Builder.cookieHandler(CookieHandler cookieHandler) Specify a cookie handler to use on the HttpClient.Specify the Executor to use for asynchronous tasks.static HttpClientContext.BuilderHttpClientContext.newBuilder()Deprecated.HttpClientContext.Builder.priority(int priority) Set the priority for HTTP/2 requests to the underlyingHttpClient.HttpClientContext.Builder.proxy(ProxySelector proxySelector) Set the proxy to the underlyingHttpClient.HttpClientContext.Builder.redirect(HttpClient.Redirect redirect) Specify the redirect policy.HttpClientContext.Builder.requestIntercept(RequestIntercept requestIntercept) Add a request interceptor.HttpClientContext.Builder.requestListener(RequestListener requestListener) Add a request listener.HttpClientContext.Builder.requestLogging(boolean requestLogging) Disable or enable built in request and response logging.HttpClientContext.Builder.requestTimeout(Duration requestTimeout) Set the default request timeout.HttpClientContext.Builder.retryHandler(RetryHandler retryHandler) Set a RetryHandler to use to retry requests.HttpClientContext.Builder.sslContext(SSLContext sslContext) Set the sslContext to the underlyingHttpClient.HttpClientContext.Builder.sslParameters(SSLParameters sslParameters) Set the sslParameters to the underlyingHttpClient.HttpClientContext.Builder.version(HttpClient.Version version) Specify the HTTP version.