Struct ureq::Proxy [−][src]
pub struct Proxy { /* fields omitted */ }
Proxy server definition
Implementations
impl Proxy
[src]
impl Proxy
[src]pub fn new<S: AsRef<str>>(proxy: S) -> Result<Self, Error>
[src]
Create a proxy from a format string.
Arguments:
proxy
- a str of format<protocol>://<user>:<password>@<host>:port
. All parts except host are optional.
Protocols
http
: HTTP Connectsocks
,socks5
: SOCKS5 (requires socks feature)
Examples
http://127.0.0.1:8080
socks5://john:smith@socks.google.com
john:smith@socks.google.com:8000
localhost
Trait Implementations
impl StructuralEq for Proxy
[src]
impl StructuralEq for Proxy
[src]impl StructuralPartialEq for Proxy
[src]
impl StructuralPartialEq for Proxy
[src]Auto Trait Implementations
impl RefUnwindSafe for Proxy
impl RefUnwindSafe for Proxy
impl UnwindSafe for Proxy
impl UnwindSafe for Proxy