pub struct Request { /* fields omitted */ }
Expand description
A request which can be executed with Client::execute()
.
Constructs a new request.
Get a mutable reference to the method.
Get a mutable reference to the url.
Get a mutable reference to the headers.
pub fn body(&self) -> Option<&Body>
pub fn body_mut(&mut self) -> &mut Option<Body>
Get a mutable reference to the body.
Attempts to clone the Request
.
None is returned if a body is which can not be cloned. This method
currently always returns Some
, but that may change in the future.
Formats the value using the given formatter. Read more
The type returned in the event of a conversion error.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.