Struct hyper_proxy2::Proxy
source · pub struct Proxy { /* private fields */ }
Expand description
A Proxy struct
Implementations§
source§impl Proxy
impl Proxy
Set Proxy
authorization
sourcepub fn force_connect(&mut self)
pub fn force_connect(&mut self)
Forces the use of the CONNECT method.
sourcepub fn set_header(&mut self, name: HeaderName, value: HeaderValue)
pub fn set_header(&mut self, name: HeaderName, value: HeaderValue)
Set a custom header
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Proxy
impl Send for Proxy
impl Sync for Proxy
impl Unpin for Proxy
impl !UnwindSafe for Proxy
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