Proxy
struct Proxy
A proxy configuration.
Methods
intercept
pub fn intercept(self, uri: Uri): ProxyScheme?
Returns the proxy scheme for the given URI.
intercept
pub fn intercept(self, uri: Uri): ProxyScheme?
Returns the proxy scheme for the given URI.
Returns the proxy scheme for the given URI.
Returns nil
if no proxy is configured for the URI.
https
pub fn https(scheme: ProxyScheme): Proxy
Creates a proxy configuration that proxies HTTPS traffic.
https
pub fn https(scheme: ProxyScheme): Proxy
Creates a proxy configuration that proxies HTTPS traffic.
Creates a proxy configuration that proxies HTTPS traffic.
http
pub fn http(scheme: ProxyScheme): Proxy
Creates a proxy configuration that proxies HTTP traffic.
http
pub fn http(scheme: ProxyScheme): Proxy
Creates a proxy configuration that proxies HTTP traffic.
Creates a proxy configuration that proxies HTTP traffic.
all
pub fn all(scheme: ProxyScheme): Proxy
Creates a proxy configuration that proxies all traffic.
all
pub fn all(scheme: ProxyScheme): Proxy
Creates a proxy configuration that proxies all traffic.
Creates a proxy configuration that proxies all traffic.