Struct wasmer_vnet::HttpStatus

source ·
pub struct HttpStatus {
    pub redirected: bool,
    pub size: usize,
    pub status: u16,
    pub status_text: String,
}
Expand description

Represents the final result of a HTTP request

Fields§

§redirected: bool

Indicates if the HTTP request was redirected to another URL / server

§size: usize

Size of the data held in the response receiver

§status: u16

Status code returned by the server

§status_text: String

Status text returned by the server

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.