the HTTP response code such as 200
or 404
.
the response content.
the HTTP headers.
Add some headers to this response.
Add some headers to this response.
the new headers to add.
a copy of the response with the new headers added.
Add some headers to this response.
Add some headers to this response.
the new headers to add.
a copy of the response with the new headers added.
Set the content of this response.
Set the content of this response.
the content to use for this response.
the ContentEncoder to use to encode this content.
a copy of this response with a new content.
Return a successful unit IO if the response status is in the Success 2xx range.
Return a successful unit IO if the response status is in the Success 2xx range. Otherwise, it consumes the response as String and report the error as a failed IO.
the response content.
Drain the content attached to this response.
Drain the content attached to this response. It is safe to call this operation even if the stream has already been consumed.
the HTTP headers.
true is this HTTP response is a redirect.
Consume the content attached to this response by evaluating the provided effect function.
Consume the content attached to this response by evaluating the provided effect function.
the function to use to consume the stream.
eventually a value of type A
.
Consume the content attached to this response and eventually produces a value of type A
.
Consume the content attached to this response and eventually produces a value of type A
.
the ContentDecoder to use to read the content.
eventually a value of type A
.
Consume the content attached to this response by evaluating the provided effect function the status is in the Success 2xx range.
Consume the content attached to this response by evaluating the provided effect function the status is in the Success 2xx range. Otherwise, it consumes the response as String and report the error as a failed IO.
the function to use to consume the stream.
eventually a value of type A
or a failure if the status code was not 2xx.
Consume the content attached to this response if the status is in the Success 2xx range.
Consume the content attached to this response if the status is in the Success 2xx range. Otherwise, it consumes the response as String and report the error as a failed IO.
the ContentDecoder to use to read the content.
eventually a value of type A
or a failure if the status code was not 2xx.
Remove some headers from this response.
Remove some headers from this response.
the header names to remove
a copy of the response without the removed headers.
the HTTP response code such as 200
or 404
.
(Since version ) see corresponding Javadoc for more information.
An HTTP response.
Represent all the data available in the HTTP response headers, and the response content that can be consumed lazily if needed.
the HTTP response code such as
200
or404
.the response content.
the HTTP headers.