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.Builder Modifier and Type Method Description static HttpClientContext.Builder
HttpClientContext. newBuilder()
Return the builder to config and build the client context.HttpClientContext.Builder
HttpClientContext.Builder. with(HttpClient client)
Set the underlying HttpClient to use.HttpClientContext.Builder
HttpClientContext.Builder. withAuthTokenProvider(AuthTokenProvider authTokenProvider)
Add a Authorization token provider.HttpClientContext.Builder
HttpClientContext.Builder. withBaseUrl(String baseUrl)
Set the base URL to use for requests created from the context.HttpClientContext.Builder
HttpClientContext.Builder. withBodyAdapter(BodyAdapter adapter)
Set the body adapter to use to convert beans to body content and response content back to beans.HttpClientContext.Builder
HttpClientContext.Builder. withCookieHandler(CookieHandler cookieHandler)
Specify a cookie handler to use on the HttpClient.HttpClientContext.Builder
HttpClientContext.Builder. withExecutor(Executor executor)
Specify the Executor to use for asynchronous tasks.HttpClientContext.Builder
HttpClientContext.Builder. withRedirect(HttpClient.Redirect redirect)
Specify the redirect policy.HttpClientContext.Builder
HttpClientContext.Builder. withRequestIntercept(RequestIntercept requestIntercept)
Add a request interceptor.HttpClientContext.Builder
HttpClientContext.Builder. withRequestListener(RequestListener requestListener)
Add a request listener.HttpClientContext.Builder
HttpClientContext.Builder. withRequestTimeout(Duration requestTimeout)
Set the default request timeout.HttpClientContext.Builder
HttpClientContext.Builder. withRetryHandler(RetryHandler retryHandler)
Set a RetryHandler to use to retry requests.HttpClientContext.Builder
HttpClientContext.Builder. withVersion(HttpClient.Version version)
Specify the HTTP version.