Uses of Interface
io.avaje.http.client.HttpClientRequest
-
Uses of HttpClientRequest in io.avaje.http.client
Methods in io.avaje.http.client that return HttpClientRequestModifier and TypeMethodDescriptionHttpClientRequest.body
(byte[] body) Set the body content as a bytes.HttpClientRequest.body
(BodyContent bodyContent) Set encoded body content.HttpClientRequest.body
(InputStream stream) Set the body content with supplied InputStream.Set the body as a bean using the default content type.Set the body as a bean additionally specifying the type that will be used to serialise the content (e.g.Set the body as a bean with the given content type and additionally specifying the type that will be used to serialise the content (e.g.Set the body as a bean additionally specifying the type that will be used to serialise the content (e.g.Set the body as a bean with the given content type using a BodyWriter.Set the body content as a string using the default content type.HttpClientRequest.body
(HttpRequest.BodyPublisher body) Set the body content using http BodyPublisher.Set the body content with supplied InputStream.HttpClientRequest.body
(Supplier<? extends InputStream> supplier) Set the body content with supplied InputStream.HttpClientRequest.errorMapper
(Function<HttpException, RuntimeException> errorMapper) Set the mapper used to transformHttpException
into a different kind of exception.Add a form parameter.Add a form parameter.Add the form parameters via a map.HttpClientRequest.gzip
(boolean gzip) Set if body content should be gzip encoded.Add the header to the request implicitly converting the value to a String.Add the header to the request.HttpClientRequest.header
(String name, Collection<String> value) Add the headers to the request via Collection.Add the headers to the request via map.HttpClientRequest.headerAddIfAbsent
(String name, Object value) Add the header to the request but only if there is no existing value for the given header.Set a label for the request.HttpClientRequest.matrixParam
(String name, Object value) Add a matrix parameter to the current path segment.HttpClientRequest.matrixParam
(String name, String value) Add a matrix parameter to the current path segment.HttpClientRequest.path
(int val) Add a path segment to the URL.HttpClientRequest.path
(long val) Add a path segment to the URL.Add a path segment to the URL.Add a path segment to the URL.HttpClientRequest.queryParam
(String name, Object value) Add a query parameter, if value is a collection then it's values are appended with the same keyHttpClientRequest.queryParam
(String name, String value) Add a query parameterdefault HttpClientRequest
HttpClientRequest.queryParam
(String name, Collection<String> values) Add a query parameter with multiple valuesHttpClientRequest.queryParam
(Map<String, ?> params) Add a multiple query parameters as name value map.HttpClient.request()
Create a new request.HttpClientRequest.requestTimeout
(Duration requestTimeout) Set the request timeout to use for this request.HttpClientRequest.setAttribute
(String key, Object value) Used to pass custom attribute betweenRequestIntercept
methods.HttpClientRequest.skipAuthToken()
For this request skip using an Authorization token.HttpClientRequest.suppressLogging()
For this request suppress payload logging.Set the URL to use replacing the base URL.Methods in io.avaje.http.client with parameters of type HttpClientRequestModifier and TypeMethodDescriptiondefault void
RequestIntercept.afterResponse
(HttpResponse<?> response, HttpClientRequest request) After the response has been received.void
BasicAuthIntercept.beforeRequest
(HttpClientRequest request) default void
RequestIntercept.beforeRequest
(HttpClientRequest request) Before the request has been made.AuthTokenProvider.obtainToken
(HttpClientRequest tokenRequest) Obtain a new Authorization token.