Struct hyper_proxy::Proxy [−][src]
pub struct Proxy { /* fields omitted */ }
A Proxy strcut
Methods
impl Proxy
[src]
impl Proxy
pub fn new<I: Into<Intercept>>(intercept: I, uri: Uri) -> Proxy
[src]
pub fn new<I: Into<Intercept>>(intercept: I, uri: Uri) -> Proxy
Create 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) -> &Intercept
Get current intercept
pub fn headers(&self) -> &HeaderMap
[src]
pub fn headers(&self) -> &HeaderMap
Get current Headers
which must be sent to proxy
pub fn uri(&self) -> &Uri
[src]
pub fn uri(&self) -> &Uri
Get proxy uri
Trait Implementations
impl Clone for Proxy
[src]
impl Clone for Proxy
fn clone(&self) -> Proxy
[src]
fn clone(&self) -> Proxy
Returns 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