pub struct TrustedProxies { /* private fields */ }Expand description
Resolves the end user’s address for an app behind proxies with known
addresses or subnets ("10.0.0.0/8", "127.0.0.1").
It walks X-Forwarded-For from the right, skipping trusted proxies, and
returns the first address that is not one. There is deliberately no hop
count: it cannot tell a proxy from a client that sent its own header.
Implementations§
Trait Implementations§
Source§impl Clone for TrustedProxies
impl Clone for TrustedProxies
Auto Trait Implementations§
impl Freeze for TrustedProxies
impl RefUnwindSafe for TrustedProxies
impl Send for TrustedProxies
impl Sync for TrustedProxies
impl Unpin for TrustedProxies
impl UnsafeUnpin for TrustedProxies
impl UnwindSafe for TrustedProxies
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