Create a new retrieval result
the body of the result
additional metadata on the result of the retrieval
Retrieve the contents of the body.
Check if the contents of the body have been consumed.
Check if this response is a result of a successful request.
Get the HTTP status code, e.g. 200
Get the ResponseType type of the response.
Create a deep copy of this response.
Consume the contents of the body as JSON.
Consume the contents of the body as text.
StaticerrorCreate a new response that represents a network error.
StaticjsonCreate a new response, whose body is JSON-encoded data
JSON-encoded body of the response
Optionalinit: ResponseInitadditional response metadata
The result of a resource retrieval.