Struct hyper_proxy::ProxyConnector [] [src]

pub struct ProxyConnector<C> { /* fields omitted */ }

A wrapper around Proxys with a connector.

Methods

impl<C> ProxyConnector<C>
[src]

[src]

Create a new secured Proxies

[src]

Create a new unsecured Proxy

[src]

Create a proxy connector and attach a particular proxy

[src]

Create a proxy connector and attach a particular proxy

[src]

Change proxy connector

[src]

Set or unset tls when tunneling

[src]

Get the current proxies

[src]

Add a new additional proxy

[src]

Extend the list of proxies

[src]

Get http headers for a matching uri

These headers must be appended to the hyper Request for the proxy to work properly. This is needed only for http requests.

Trait Implementations

impl<C: Clone> Clone for ProxyConnector<C>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<C: Debug> Debug for ProxyConnector<C>
[src]

[src]

Formats the value using the given formatter. Read more

impl<C> Service for ProxyConnector<C> where
    C: Service<Request = Uri, Error = Error> + 'static,
    C::Future: 'static,
    <C::Future as Future>::Item: AsyncRead + AsyncWrite + 'static, 
[src]

Requests handled by the service.

Responses given by the service.

Errors produced by the service.

The future response value.

[src]

Process the request and return the response asynchronously.

Auto Trait Implementations

impl<C> Send for ProxyConnector<C> where
    C: Send

impl<C> !Sync for ProxyConnector<C>