pub struct Proxy { /* private fields */ }
Expand description
A Proxy strcut
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 !Freeze for Proxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)