pub struct RequestContext<'a> {
pub method: &'a Method,
pub uri: &'a Uri,
pub headers: &'a HeaderMap,
}Expand description
Request context passed to ClientMiddleware::before_request.
Contains read-only references to the parts of the outgoing request that are cheaply observable without buffering the body.
Fields§
§method: &'a MethodHTTP method of the outgoing request.
uri: &'a UriTarget URI of the outgoing request.
headers: &'a HeaderMapHeaders of the outgoing request.
Auto Trait Implementations§
impl<'a> Freeze for RequestContext<'a>
impl<'a> RefUnwindSafe for RequestContext<'a>
impl<'a> Send for RequestContext<'a>
impl<'a> Sync for RequestContext<'a>
impl<'a> Unpin for RequestContext<'a>
impl<'a> UnsafeUnpin for RequestContext<'a>
impl<'a> UnwindSafe for RequestContext<'a>
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