Uses of Interface
io.avaje.http.client.HttpClientRequest
-
Uses of HttpClientRequest in io.avaje.http.client
Methods in io.avaje.http.client that return HttpClientRequest Modifier and Type Method Description HttpClientRequest
HttpClientRequest. body(byte[] body)
Set the body content as a bytes.HttpClientRequest
HttpClientRequest. body(BodyContent bodyContent)
Set encoded body content.HttpClientRequest
HttpClientRequest. body(Object bean)
Set the body as a bean using the default content type.HttpClientRequest
HttpClientRequest. body(Object bean, String contentType)
Set the body as a bean with the given content type using a BodyWriter.HttpClientRequest
HttpClientRequest. body(String body)
Set the body content as a string.HttpClientRequest
HttpClientRequest. body(HttpRequest.BodyPublisher body)
Set the body content using http BodyPublisher.HttpClientRequest
HttpClientRequest. body(Path file)
Set the body content with supplied InputStream.HttpClientRequest
HttpClientRequest. body(Supplier<? extends InputStream> supplier)
Set the body content with supplied InputStream.HttpClientRequest
HttpClientRequest. formParam(String name, Object value)
Add a form parameter.HttpClientRequest
HttpClientRequest. formParam(String name, String value)
Add a form parameter.HttpClientRequest
HttpClientRequest. gzip(boolean gzip)
Set if body content should be gzip encoded.HttpClientRequest
HttpClientRequest. header(String name, Object value)
Add the header to the request implicitly converting the value to a String.HttpClientRequest
HttpClientRequest. header(String name, String value)
Add the header to the request.HttpClientRequest
HttpClientRequest. matrixParam(String name, Object value)
Add a matrix parameter to the current path segment.HttpClientRequest
HttpClientRequest. matrixParam(String name, String value)
Add a matrix parameter to the current path segment.HttpClientRequest
HttpClientRequest. path(int val)
Add a path segment to the URL.HttpClientRequest
HttpClientRequest. path(long val)
Add a path segment to the URL.HttpClientRequest
HttpClientRequest. path(Object val)
Add a path segment to the URL.HttpClientRequest
HttpClientRequest. path(String path)
Add a path segment to the URL.HttpClientRequest
HttpClientRequest. queryParam(String name, Object value)
Add a Integer query parameterHttpClientRequest
HttpClientRequest. queryParam(String name, String value)
Add a query parameterHttpClientRequest
HttpClientContext. request()
Create a new request.HttpClientRequest
HttpClientRequest. requestTimeout(Duration requestTimeout)
Set the request timeout to use for this request.HttpClientRequest
HttpClientRequest. skipAuthToken()
For this request skip using an Authorization token.HttpClientRequest
HttpClientRequest. suppressLogging()
For this request suppress payload logging.HttpClientRequest
HttpClientRequest. url(String url)
Set the URL to use replacing the base URL.Methods in io.avaje.http.client with parameters of type HttpClientRequest Modifier and Type Method Description void
BasicAuthIntercept. afterResponse(HttpResponse<?> response, HttpClientRequest request)
void
RequestIntercept. afterResponse(HttpResponse<?> response, HttpClientRequest request)
After the response has been received.void
BasicAuthIntercept. beforeRequest(HttpClientRequest request)
void
RequestIntercept. beforeRequest(HttpClientRequest request)
Before the request has been made.AuthToken
AuthTokenProvider. obtainToken(HttpClientRequest tokenRequest)
Obtain a new Authorization token.