[][src]Struct minreq::Response

pub struct Response {
    pub status_code: i32,
    pub reason_phrase: String,
    pub headers: HashMap<String, String>,
    pub body: String,
    pub body_bytes: Vec<u8>,
}

An HTTP response.

Fields

status_code: i32

The status code of the response, eg. 404.

reason_phrase: String

The reason phrase of the response, eg. "Not Found".

headers: HashMap<String, String>

The headers of the response.

body: String

The body of the response.

body_bytes: Vec<u8>

The body of the response, as raw bytes.

Auto Trait Implementations

impl Send for Response

impl Sync for Response

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]