Use both l
and r
to read the response body.
Use both l
and r
to read the response body. Neither response specifications may use streaming or web sockets.
Use l
to read the response body.
Use l
to read the response body. If the raw body value which is used by l
is replayable (a file or byte
array), also use r
to read the response body. Otherwise ignore r
(if the raw body is a stream or a web
socket).
Uses the onSuccess
response specification for successful responses (2xx), and the onError
specification
otherwise.
Uses the onSuccess
response specification for successful responses (2xx), and the onError
specification
otherwise.
Use the given charset by default, unless specified otherwise in the response headers.
Use the given charset by default, unless specified otherwise in the response headers.
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Use the given charset by default, unless specified otherwise in the response headers.
Use the given charset by default, unless specified otherwise in the response headers.
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Use the given charset by default, unless specified otherwise in the response headers.
Use the given charset by default, unless specified otherwise in the response headers.
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Use the utf-8
charset by default, unless specified otherwise in the response headers.
Uses the onSuccess
response specification for 101 responses (switching protocols), and the onError
specification otherwise.
Uses the onSuccess
response specification for 101 responses (switching protocols), and the onError
specification otherwise.
A starting request, with the following modification comparing to emptyRequest
: Accept-Encoding
is set to
gzip, deflate
(compression/decompression is handled automatically by the library).
A starting request, with the following modification comparing to emptyRequest
: Accept-Encoding
is set to
gzip, deflate
(compression/decompression is handled automatically by the library).
Reads the response body as an Either[String, String]
, where Left
is used if the status code is non-2xx, and
Right
otherwise.
An empty request with no headers.
An empty request with no headers.
Reads the response body as an Either[String, String]
, where Left
is used if the status code is non-2xx, and
Right
otherwise.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Encodes the given parameters as form data.
Encodes the given parameters as form data.
Content type will be set to application/x-www-form-urlencoded
, can be overridden later using the contentType
method.
Encodes the given parameters as form data using utf-8
.
Encodes the given parameters as form data using utf-8
.
Content type will be set to application/x-www-form-urlencoded
, can be overridden later using the contentType
method.
Encodes the given parameters as form data.
Encodes the given parameters as form data.
Content type will be set to application/x-www-form-urlencoded
, can be overridden later using the contentType
method.
Encodes the given parameters as form data using utf-8
.
Encodes the given parameters as form data using utf-8
.
Content type will be set to application/x-www-form-urlencoded
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to text/plain
with given encoding, can be overridden later using the contentType
method.
Content type will be set to text/plain
with given encoding, can be overridden later using the contentType
method.
Content type will be set to text/plain
with utf-8
encoding, can be overridden later using the contentType
method.
Content type will be set to text/plain
with utf-8
encoding, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
File name will be set to the name of the file.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
File name will be set to the name of the file.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
Content type will be set to application/octet-stream
, can be overridden later using the contentType
method.
A starting request which always reads the response body as a string, regardless of the status code.
A starting request which always reads the response body as a string, regardless of the status code.
(Since version ) see corresponding Javadoc for more information.