pub struct Response {
    pub status: u16,
    pub body: Vec<u8>,
    pub headers: Headers,
}
Expand description

A response coming from an HTTP endpoint.

Fields

status: u16

The HTTP status code of the response.

body: Vec<u8>headers: Headers

Implementations

Whether or not the response code represents HTTP success.

Whether or not the response code represents HTTP client error.

Whether or not the response code represents HTTP server error.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.