ProxyScheme
struct ProxyScheme
A HTTP proxy scheme.
Methods
custom_http_auth
pub fn custom_http_auth(self, value: string): ProxyScheme
Set the `Proxy-Authorization`` header to a specified value.
custom_http_auth
pub fn custom_http_auth(self, value: string): ProxyScheme
Set the `Proxy-Authorization`` header to a specified value.
Set the `Proxy-Authorization`` header to a specified value.
basic_auth
pub fn basic_auth(self, username: string, password: string): ProxyScheme
Set the Proxy-Authorization
header using Basic auth.
basic_auth
pub fn basic_auth(self, username: string, password: string): ProxyScheme
Set the Proxy-Authorization
header using Basic auth.
Set the Proxy-Authorization
header using Basic auth.
http
pub fn http(host: string, port: int): ProxyScheme
Create a HTTP proxy scheme.
http
pub fn http(host: string, port: int): ProxyScheme
Create a HTTP proxy scheme.
Create a HTTP proxy scheme.
parse
pub fn parse(value: string): ProxyScheme throws ParseProxySchemeError
parse
pub fn parse(value: string): ProxyScheme throws ParseProxySchemeError
socks5h
pub fn socks5h(host: string, port: int): ProxyScheme
Create a Socket5 proxy scheme with remote dns.
socks5h
pub fn socks5h(host: string, port: int): ProxyScheme
Create a Socket5 proxy scheme with remote dns.
Create a Socket5 proxy scheme with remote dns.
socks5
pub fn socks5(host: string, port: int): ProxyScheme
Create a Socket5 proxy scheme.
socks5
pub fn socks5(host: string, port: int): ProxyScheme
Create a Socket5 proxy scheme.
Create a Socket5 proxy scheme.
https
pub fn https(host: string, port: int): ProxyScheme
Create a HTTPS proxy scheme.
https
pub fn https(host: string, port: int): ProxyScheme
Create a HTTPS proxy scheme.
Create a HTTPS proxy scheme.