pub struct PeekedHost {
pub sni: Option<String>,
pub requested_host: Option<String>,
pub dest: SocketAddr,
}Expand description
What the proxy peeked off the wire to identify the destination, without MITM (PRODUCT.md B.5 step 2: “no MITM, no cert interception by default”).
Fields§
§sni: Option<String>TLS SNI server name, if the first record was a ClientHello.
requested_host: Option<String>HTTP CONNECT target / Host header, if the request was plaintext HTTP.
dest: SocketAddrThe raw destination socket address the agent tried to reach.
Trait Implementations§
Source§impl Clone for PeekedHost
impl Clone for PeekedHost
Source§fn clone(&self) -> PeekedHost
fn clone(&self) -> PeekedHost
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PeekedHost
impl RefUnwindSafe for PeekedHost
impl Send for PeekedHost
impl Sync for PeekedHost
impl Unpin for PeekedHost
impl UnsafeUnpin for PeekedHost
impl UnwindSafe for PeekedHost
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more