Struct reqwest::Response [−][src]
pub struct Response { /* fields omitted */ }
Expand description
A Response to a submitted Request
.
Implementations
Get the StatusCode
of this Response
.
Get a mutable reference to the Headers
of this Response
.
Get the content-length of this response, if known.
Reasons it may not be known:
- The server didn’t send a
content-length
header. - The response is compressed and automatically decoded (thus changing the actual decoded length).
This is supported on crate feature json
only.
This is supported on crate feature
json
only.Try to deserialize the response body as JSON.
Turn a response into an error if the server returned an error.
Turn a reference to a response into an error if the server returned an error.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Response
impl !UnwindSafe for Response