Type Alias Request

Source
pub type Request = Request<BoxedStream>;
Available on crate feature blocking only.
Expand description

Type alias for blocking HTTP requests.

Aliased Type§

struct Request {
    pub method: Method,
    pub relative_uri: Cow<'static, str>,
    pub additional_headers: Vec<(Cow<'static, str>, Cow<'static, str>)>,
    pub body: Option<Body<Box<dyn BodyStream>>>,
}

Fields§

§method: Method

The HTTP method for this request

§relative_uri: Cow<'static, str>

The URI for this request, can be absolute or relative

§additional_headers: Vec<(Cow<'static, str>, Cow<'static, str>)>

Additional HTTP headers to include with this request

§body: Option<Body<Box<dyn BodyStream>>>

Optional request body