pub struct ProxySession { /* private fields */ }Expand description
Platform-neutral authenticated proxy admission state.
Implementations§
Source§impl ProxySession
impl ProxySession
Sourcepub fn new(config: ProxyConfig) -> Result<Self, ProxyError>
pub fn new(config: ProxyConfig) -> Result<Self, ProxyError>
Open one non-cloneable proxy session.
Sourcepub const fn endpoint(&self) -> LoopbackEndpoint
pub const fn endpoint(&self) -> LoopbackEndpoint
Exact numeric loopback endpoint.
Browser callback authorization value.
Sourcepub fn authentication_challenge(&self) -> Vec<u8> ⓘ
pub fn authentication_challenge(&self) -> Vec<u8> ⓘ
Bounded 407 response for missing/invalid proxy authentication.
Sourcepub fn admit_connect(
&mut self,
engine: &Engine,
client: SocketAddr,
request_head: &[u8],
) -> Result<PendingConnect, ProxyError>
pub fn admit_connect( &mut self, engine: &Engine, client: SocketAddr, request_head: &[u8], ) -> Result<PendingConnect, ProxyError>
Admit one strict authenticated loopback CONNECT before origin TLS.
Convert one pending CONNECT into an exact-host tunnel grant.
Sourcepub fn cancel(&mut self, pending: &PendingConnect) -> Result<(), ProxyError>
pub fn cancel(&mut self, pending: &PendingConnect) -> Result<(), ProxyError>
Cancel one exact pending request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProxySession
impl RefUnwindSafe for ProxySession
impl Send for ProxySession
impl Sync for ProxySession
impl Unpin for ProxySession
impl UnsafeUnpin for ProxySession
impl UnwindSafe for ProxySession
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