Add a query parameter to the request.
Configure the request to decode the response with the responseCodec
.
Configure the request to perform HTTP Authentication.
Performs a generic authentication using the credentials provided by the user. For the sake of validation safety it is recommended that is called to ensure that the credentials are applicable to the HTTP Challenged received on a previous request that returned a 401 response code.
Configure the request to perform basic access authentication.
In basic HTTP authentication, a request contains a header field of the form 'Authorization: Basic <credentials>', where credentials is the base64 encoding of id and password joined by a colon.
In practical terms the arguments are converted to a object.Configure the request to perform basic access authentication.
In basic HTTP authentication, a request contains a header field of the form 'Authorization: Basic <credentials>', where credentials is the base64 encoding of id and password joined by a colon.
In practical terms the arguments are converted to a object.Configure the request to perform bearer token authentication.
In OAuth 2.0, a request contains a header field of the form 'Authorization: Bearer <bearerToken>', where bearerToken is the bearer token issued by an authorization server to access protected resources.
In practical terms the arguments are converted to a object.Copy this request
Add an expectation that the response is valid according to the provided predicate
.
Multiple predicates can be added.
Add an expectation that the response is valid according to the provided predicate
.
Multiple predicates can be added.
Set whether to follow request redirections
Configure the request to use a new host value
.
This overrides the host set by absolute URI requests
Configure the request to use a new method value
.
Allow or disallow multipart mixed encoding when sending having files sharing the same
file name.
The default value is true
.
Set to false
if you want to achieve the behavior for HTML5.
Configure the request to use a new port value
.
This overrides the port set by absolute URI requests
Configure the request to set a proxy for this request.
Setting proxy here supersedes the proxy set on the client itself
Configure the request to set a new HTTP header.
Configure the request to set a new HTTP header with multiple values.
Configure the request to add multiple HTTP headers .
Return the current query parameters.
Send a request, the handler
will receive the response as an HttpResponse.
Send a request, the handler
will receive the response as an HttpResponse.
Like {@link HttpRequest#send} but with an HTTP request body
buffer.
Like {@link HttpRequest#send} but with an HTTP request body
buffer.
Like {@link HttpRequest#send} but with an HTTP request body
multimap encoded as form and the content type
set to application/x-www-form-urlencoded
.
When the content type header is previously set to multipart/form-data
it will be used instead.
Like {@link HttpRequest#send} but with an HTTP request body
multimap encoded as form and the content type
set to application/x-www-form-urlencoded
.
When the content type header is previously set to multipart/form-data
it will be used instead.
Like {@link HttpRequest#send} but with an HTTP request body
multimap encoded as form and the content type
set to application/x-www-form-urlencoded
.
When the content type header is previously set to multipart/form-data
it will be used instead.
NOTE: the use of this method is strongly discouraged to use when the form is a application/x-www-form-urlencoded
encoded form since the charset to use must be UTF-8.
Like {@link HttpRequest#send} but with an HTTP request body
multimap encoded as form and the content type
set to application/x-www-form-urlencoded
.
When the content type header is previously set to multipart/form-data
it will be used instead.
NOTE: the use of this method is strongly discouraged to use when the form is a application/x-www-form-urlencoded
encoded form since the charset to use must be UTF-8.
Like {@link HttpRequest#send} but with an HTTP request body
object encoded as json and the content type
set to application/json
.
Like {@link HttpRequest#send} but with an HTTP request body
object encoded as json and the content type
set to application/json
.
Like {@link HttpRequest#send} but with an HTTP request body
object encoded as json and the content type
set to application/json
.
Like {@link HttpRequest#send} but with an HTTP request body
object encoded as json and the content type
set to application/json
.
Like {@link HttpRequest#send} but with an HTTP request body
multimap encoded as form and the content type
set to multipart/form-data
. You may use this method to send attributes and upload files.
Like {@link HttpRequest#send} but with an HTTP request body
multimap encoded as form and the content type
set to multipart/form-data
. You may use this method to send attributes and upload files.
Like {@link HttpRequest#send} but with an HTTP request body
stream.
Like {@link HttpRequest#send} but with an HTTP request body
stream.
Set a query parameter to the request.
Set a request URI template string parameter to the request, expanded when the request URI is a .
Set a request URI template list parameter to the request, expanded when the request URI is a .
Set a request URI template map parameter to the request, expanded when the request URI is a .
Configure the request whether to use SSL.
This overrides the SSL value set by absolute URI requests
Return the current request URI template parameters.
Configures the amount of time in milliseconds after which if the request does not return any data within the timeout period an TimeoutException fails the request.
Setting zero or a negative value
disables the timeout.
Trace operation name override.
Configure the request to use a new request URI value
.
This overrides the port set by absolute URI requests
When the uri has query parameters, they are set in the {@link HttpRequest#queryParams}, overwriting any parameters previously set
Configure the request to use a virtual host value
.
Generated using TypeDoc
A client-side HTTP request.
Instances are created by an WebClient instance, via one of the methods corresponding to the specific HTTP methods such as {@link WebClient#get}, etc...
The request shall be configured prior sending, the request is immutable and when a mutator method is called, a new request is returned allowing to expose the request in a public API and apply further customization.
After the request has been configured, the methods
sendXXX
methods perform the actual request, they can be called multiple times to perform the same HTTP request at different points in time.The handler is called back with
Most of the time, this client will buffer the HTTP response fully unless a specific is used such as .