Struct hyper_proxy::Proxy [−][src]
pub struct Proxy { /* fields omitted */ }A Proxy strcut
Methods
impl Proxy[src]
impl Proxypub fn new<I: Into<Intercept>>(intercept: I, uri: Uri) -> Proxy[src]
pub fn new<I: Into<Intercept>>(intercept: I, uri: Uri) -> ProxyCreate a new Proxy
Set Proxy authorization
pub fn set_header(&mut self, name: HeaderName, value: HeaderValue)[src]
pub fn set_header(&mut self, name: HeaderName, value: HeaderValue)Set a custom header
pub fn intercept(&self) -> &Intercept[src]
pub fn intercept(&self) -> &InterceptGet current intercept
pub fn headers(&self) -> &HeaderMap[src]
pub fn headers(&self) -> &HeaderMapGet current Headers which must be sent to proxy
pub fn uri(&self) -> &Uri[src]
pub fn uri(&self) -> &UriGet proxy uri
Trait Implementations
impl Clone for Proxy[src]
impl Clone for Proxyfn clone(&self) -> Proxy[src]
fn clone(&self) -> ProxyReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Proxy[src]
impl Debug for Proxy