pub struct Request<'a, T> { /* private fields */ }
Implementations§
Source§impl<'a, T> Request<'a, T>
impl<'a, T> Request<'a, T>
Sourcepub fn app_locals(&self) -> Option<&'a T>
pub fn app_locals(&self) -> Option<&'a T>
Retrieves the app locals
Sourcepub fn header(&self, header: &str) -> Option<String>
pub fn header(&self, header: &str) -> Option<String>
Retrieves the given header value. If the header is not present, None will be returned.
Sourcepub fn original_url(&self) -> PathAndQuery
pub fn original_url(&self) -> PathAndQuery
Retrieves the full request original url path and query.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> !Freeze for Request<'a, T>
impl<'a, T> !RefUnwindSafe for Request<'a, T>
impl<'a, T> Send for Request<'a, T>where
T: Sync,
impl<'a, T> Sync for Request<'a, T>where
T: Sync,
impl<'a, T> Unpin for Request<'a, T>
impl<'a, T> !UnwindSafe for Request<'a, T>
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