pub struct RawRequest {
pub method: String,
pub target: String,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
pub peer_cert: bool,
pub peer_subject: Option<String>,
pub peer_sans: Vec<String>,
}Expand description
A raw inbound HTTP request handed straight to a RawHandler: method, target
(path + optional query), lowercased headers, and the raw body. Unlike the
Handler path this does no JSON-RPC parsing and no transport-level auth —
the embedder routes by RawRequest::path and authenticates itself (e.g. a
per-webhook HMAC over the raw body). The DNS-rebind Origin guard and TLS
termination still apply.
Fields§
§method: String§target: String§headers: Vec<(String, String)>§body: Vec<u8>§peer_cert: boolWhether the peer presented a verified client certificate (mutual TLS).
peer_subject: Option<String>The verified mTLS leaf subject CN, if any.
peer_sans: Vec<String>The verified mTLS leaf SANs (DNS / URI / IP); empty without a client cert.
Implementations§
Auto Trait Implementations§
impl Freeze for RawRequest
impl RefUnwindSafe for RawRequest
impl Send for RawRequest
impl Sync for RawRequest
impl Unpin for RawRequest
impl UnsafeUnpin for RawRequest
impl UnwindSafe for RawRequest
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