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.
Get a mutable reference to the timeout.
Get a mutable reference to the http version.
Attempt to clone the request.
None
is returned if the request can not be cloned, i.e. if the body is a stream.
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the current Span
, returning an
Instrumented
wrapper. 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.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,