pub struct RawRequestContext {
pub headers: HeaderMap,
pub uri: Uri,
pub auth: Option<AuthContext>,
pub peer: Option<SocketAddr>,
}Expand description
The raw HTTP context available when extracting a typed request struct.
This is populated from the HTTP upgrade/connection phase and made available
to every #[derive(PlexusRequest)] extraction.
Fields§
§headers: HeaderMapHTTP headers from the request.
uri: UriThe request URI (used for query-parameter extraction).
auth: Option<AuthContext>Authenticated user context, if authentication succeeded.
peer: Option<SocketAddr>Remote peer socket address, if available.
Auto Trait Implementations§
impl !Freeze for RawRequestContext
impl RefUnwindSafe for RawRequestContext
impl Send for RawRequestContext
impl Sync for RawRequestContext
impl Unpin for RawRequestContext
impl UnsafeUnpin for RawRequestContext
impl UnwindSafe for RawRequestContext
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