pub struct Request<S> {
pub method: Method,
pub relative_uri: Cow<'static, str>,
pub additional_headers: Vec<(Cow<'static, str>, Cow<'static, str>)>,
pub body: Option<Body<S>>,
}Expand description
Represents an HTTP request to be sent by a nyquest client.
Fields§
§method: MethodThe 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<S>>Optional request body