Struct epi::http::Request[][src]

pub struct Request {
    pub method: String,
    pub url: String,
    pub body: Vec<u8>,
    pub headers: BTreeMap<String, String>,
}
Expand description

A simple http request.

Fields

method: String

“GET”, …

url: String

https://…

body: Vec<u8>

The raw bytes.

headers: BTreeMap<String, String>

(“Accept”, “/”), …

Implementations

Create a GET request with the given url.

Create a POST request with the given url and body.

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

Performs the conversion.

Performs the conversion.

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.