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: 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<S>>
Optional request body
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Request<S>where
S: Freeze,
impl<S> RefUnwindSafe for Request<S>where
S: RefUnwindSafe,
impl<S> Send for Request<S>where
S: Send,
impl<S> Sync for Request<S>where
S: Sync,
impl<S> Unpin for Request<S>where
S: Unpin,
impl<S> UnwindSafe for Request<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more