pub struct HttpMetadata {
pub host: String,
pub sni: Option<String>,
}Expand description
Router-derived metadata for HTTP tunnels. The server extracts this from bytes it already parses for routing (Host header for plain HTTP, SNI for HTTPS); it never re-parses the tunneled payload.
Fields§
§host: StringBest available host string: Host header (plain HTTP) or SNI (HTTPS passthrough). Empty when neither was extractable.
sni: Option<String>TLS ClientHello SNI, when the traffic is HTTPS-passthrough.
None for plain HTTP.
Trait Implementations§
Source§impl Clone for HttpMetadata
impl Clone for HttpMetadata
Source§impl Debug for HttpMetadata
impl Debug for HttpMetadata
Source§impl<'de> Deserialize<'de> for HttpMetadata
impl<'de> Deserialize<'de> for HttpMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HttpMetadata
Source§impl PartialEq for HttpMetadata
impl PartialEq for HttpMetadata
Source§impl Serialize for HttpMetadata
impl Serialize for HttpMetadata
impl StructuralPartialEq for HttpMetadata
Auto Trait Implementations§
impl Forget for HttpMetadata
impl Freeze for HttpMetadata
impl Move for HttpMetadata
impl RefUnwindSafe for HttpMetadata
impl Send for HttpMetadata
impl Sync for HttpMetadata
impl Unpin for HttpMetadata
impl UnsafeUnpin for HttpMetadata
impl UnwindSafe for HttpMetadata
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