Trait static_http_cache::reqwest_mock::HttpResponse
[−]
[src]
pub trait HttpResponse: Read + Debug where
Self: Sized, { fn headers(&self) -> &Headers; fn status(&self) -> StatusCode; fn error_for_status(self) -> Result<Self, Box<Error>>; }
Represents the result of sending an HTTP request.
Modelled after reqwest::Response.
Required Methods
fn headers(&self) -> &Headers
Obtain access to the headers of the response.
fn status(&self) -> StatusCode
Obtain a copy of the response's status.
fn error_for_status(self) -> Result<Self, Box<Error>>
Return an error if the response's status is in the range 400-599.