List of HTTP headers of the request.
Applies the specified transformation to the request's eventual response.
Applies the specified transformation to the request's eventual response.
Application developers should be wary of a common pitfall: when working with responses that contain instances of ResponseEntity, they should always clean these up, either by reading their content (transforming it to something else or calling ResponseEntity.empty) or explicitly ignoring them (by calling ResponseEntity.ignore).
This is a common source of issues when mapping error statuses to exceptions: each connection will be kept alive until the remote host decides it has timed out.
HTTP method of the request.
URL on which the request will be performed.
Returns the value of this instance's content type preferences.
Notifies the remote server about response content type preferences.
Notifies the remote server about response content type preferences.
This maps to the Accept header.
list of media types to declare.
Returns the value of this instance's charset preferences.
Notifies the remote server about response charset preferences.
Notifies the remote server about response charset preferences.
This maps to the Accept-Charset header.
list of charsets to declare.
Notifies the remote server that we accept deflated responses.
Returns the value of this instance's encoding header.
Notifies the remote server about transfer encoding preferences.
Notifies the remote server about transfer encoding preferences.
This maps to the Accept-Encoding header.
list of encodings to declare.
Notifies the remote server that we accept GZIPed responses.
Returns the value of this instance's language preferences.
Notifies the remote server about response language preferences.
Notifies the remote server about response language preferences.
This maps to the Accept-Language header.
list of languages to declare.
Returns the value of the specified header.
Sets the value of the specified header.
Sets the value of the specified header.
This method expects an appropriate implicit ValueWriter to be in scope. Standard formats are declared in Headers.
Represents an HTTP request.
Instances are created through the companion object. Once an instance is obtained, the request can be configured through "raw" modification methods (
,
...) as well as specialised helpers such as
,
or
.
/ }}}
acceptGzip }}}
GET }}}
headers }}} as
,
or
.
/ }}}
acceptGzip }}}
GET }}}
method }}} as
,
or
.
/ }}}
acceptGzip }}}
GET }}}