pub struct RequestParts<'a> {
pub headers: &'a [(String, String)],
pub peer_cert: bool,
pub peer_subject: Option<&'a str>,
pub peer_sans: &'a [String],
}Expand description
The parts of an inbound request an HttpAuth classifies trust from.
Fields§
§headers: &'a [(String, String)]The request’s headers (lowercased names), e.g. to read authorization.
peer_cert: boolWhether the peer presented a verified client certificate (mutual TLS).
peer_subject: Option<&'a str>The verified mTLS leaf subject CN (RFC 0029 §10.3), if any.
peer_sans: &'a [String]The verified mTLS leaf SANs (DNS / URI / IP); empty without a client cert.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RequestParts<'a>
impl<'a> RefUnwindSafe for RequestParts<'a>
impl<'a> Send for RequestParts<'a>
impl<'a> Sync for RequestParts<'a>
impl<'a> Unpin for RequestParts<'a>
impl<'a> UnsafeUnpin for RequestParts<'a>
impl<'a> UnwindSafe for RequestParts<'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