pub struct Incoming<'a> {
pub method: &'a str,
pub authority: &'a str,
pub path: &'a str,
pub query: Option<&'a str>,
pub headers: &'a HeaderMap,
pub body: Option<&'a [u8]>,
}Expand description
A signed request as it arrived.
Fields§
§method: &'a strThe method, in any case.
The authority the signer addressed: this server’s own, whatever proxy or rewrite delivered the request (AAuth §Canonical Authority).
path: &'a strThe path, without its query.
query: Option<&'a str>Without its leading ?.
headers: &'a HeaderMapEvery request header.
body: Option<&'a [u8]>The body as received, when there is one.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Incoming<'a>
impl<'a> RefUnwindSafe for Incoming<'a>
impl<'a> Send for Incoming<'a>
impl<'a> Sync for Incoming<'a>
impl<'a> Unpin for Incoming<'a>
impl<'a> UnsafeUnpin for Incoming<'a>
impl<'a> UnwindSafe for Incoming<'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