Struct hyper_proxy::Proxy
[−]
[src]
pub struct Proxy { /* fields omitted */ }
A Proxy strcut
Methods
impl Proxy
[src]
pub fn new<I: Into<Intercept>>(intercept: I, uri: Uri) -> Proxy
[src]
Create a new Proxy
[src]
Set Proxy
authorization
pub fn set_header<H: Header>(&mut self, header: H)
[src]
Set a custom header
pub fn intercept(&self) -> &Intercept
[src]
Get current intercept
pub fn headers(&self) -> &Headers
[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]
fn clone(&self) -> Proxy
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more