Struct hyper_proxy::Proxy[][src]

pub struct Proxy { /* fields omitted */ }

A Proxy strcut

Implementations

impl Proxy[src]

pub fn new<I: Into<Intercept>>(intercept: I, uri: Uri) -> Proxy[src]

Create a new Proxy

pub fn set_authorization<C: Credentials + Clone>(
    &mut self,
    credentials: Authorization<C>
)
[src]

Set Proxy authorization

pub fn force_connect(&mut self)[src]

Forces the use of the CONNECT method.

pub fn set_header(&mut self, name: HeaderName, value: HeaderValue)[src]

Set a custom header

pub fn intercept(&self) -> &Intercept[src]

Get current intercept

pub fn headers(&self) -> &HeaderMap[src]

Get current Headers which must be sent to proxy

pub fn uri(&self) -> &Uri[src]

Get proxy uri

Trait Implementations

impl Clone for Proxy[src]

impl Debug for Proxy[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.