Struct ureq::Proxy [−][src]
pub struct Proxy { /* fields omitted */ }Expand description
Proxy server definition
Implementations
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 Connectsocks4: SOCKS4 (requires socks feature)socks4a: SOCKS4A (requires socks feature)socks5andsocks: SOCKS5 (requires socks feature)
Examples
http://127.0.0.1:8080socks5://john:smith@socks.google.comjohn:smith@socks.google.com:8000localhost
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Proxy
impl UnwindSafe for Proxy
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.