The authentication this request should use
The authentication this request should use
The body of this request
The body of this request
Creates and returns an AHC request, running all operations on it.
A calculator of the signature for this request
A calculator of the signature for this request
Perform a DELETE on the request asynchronously.
Perform a DELETE on the request asynchronously.
Execute this request
Execute this request
Whether this request should follow redirects
Whether this request should follow redirects
performs a get
performs a get
Returns the body as an array of bytes.
Perform a HEAD on the request asynchronously.
Perform a HEAD on the request asynchronously.
The headers for this request
The headers for this request
The method for this request
The method for this request
Perform a OPTIONS on the request asynchronously.
Perform a OPTIONS on the request asynchronously.
Perform a PATCH on the request asynchronously.
Perform a PATCH on the request asynchronously. Request body won't be chunked
Perform a PATCH on the request asynchronously.
Perform a PATCH on the request asynchronously.
Perform a POST on the request asynchronously.
Perform a POST on the request asynchronously. Request body won't be chunked
Perform a POST on the request asynchronously.
Perform a POST on the request asynchronously.
The proxy server this request will use
The proxy server this request will use
Perform a PUT on the request asynchronously.
Perform a PUT on the request asynchronously. Request body won't be chunked
Perform a PUT on the request asynchronously.
Perform a PUT on the request asynchronously.
The query string for this request
The query string for this request
Returns the HTTP header given by name, using the request builder.
Returns the HTTP header given by name, using the request builder. This may be signed, so may return extra headers that were not directly input.
Returns the current headers of the request, using the request builder.
Returns the current headers of the request, using the request builder. This may be signed, so may return extra headers that were not directly input.
Returns the current query string parameters, using the request builder.
Returns the current query string parameters, using the request builder. This may be signed, so may not return the same parameters that were input.
The timeout for the request
The timeout for the request
Returns the current URL, using the request builder.
Returns the current URL, using the request builder. This may be signed by OAuth, as opposed to request.url.
sets the signature calculator for the request
sets the signature calculator for the request
Execute this request and stream the response body.
Execute this request and stream the response body.
The URI for this request
The URI for this request
The base URL for this request
The base URL for this request
The virtual host this request will use
The virtual host this request will use
sets the authentication realm
sets the authentication realm
Sets the body for this request
Sets the body for this request
Sets the body for this request
Sets the body for this request
Sets whether redirects (301, 302) should be followed automatically
Sets whether redirects (301, 302) should be followed automatically
adds any number of HTTP headers
adds any number of HTTP headers
Sets the method for this request
Sets the method for this request
Sets the proxy server to use in this request
Sets the proxy server to use in this request
adds any number of query string parameters to this request
adds any number of query string parameters to this request
Adds a filter to the request that can transform the request for subsequent filters.
Adds a filter to the request that can transform the request for subsequent filters.
Sets the maximum time you expect the request to take.
Sets the maximum time you expect the request to take. Use Duration.Inf to set an infinite request timeout. Warning: a stream consumption will be interrupted when this time is reached unless Duration.Inf is set.
Sets the virtual host to use in this request
Sets the virtual host to use in this request
performs a get
performs a get
that's handling the response
(Since version Use WS.withMethod("GET").stream()) 2.5.0
performs a get
performs a get
(Since version Use WS.withMethod("GET").stream()) 2.5.0
performs a POST with supplied body
performs a POST with supplied body
that's handling the response
(Since version Use WS.withMethod("PATCH").stream()) 2.5.0
performs a POST with supplied body
performs a POST with supplied body
that's handling the response
(Since version Use WS.withMethod("POST").stream()) 2.5.0
performs a PUT with supplied body
performs a PUT with supplied body
that's handling the response
(Since version Use WS.withMethod("PUT").stream()) 2.5.0
Execute this request and stream the response body.
Execute this request and stream the response body.
(Since version Use stream()
instead.) 2.5
This method used to be named stream
, but it was renamed because the method's signature was
changed and the JVM doesn't allow overloading on the return type.
A Ahc WS Request.