addProxyForScheme

fun addProxyForScheme(scheme: String, proxyUri: String)

Adds a URI-scheme-specific proxy.

URIs whose scheme matches @uri_scheme will be proxied via @proxy_uri. As with the default proxy URI, if @proxy_uri starts with "socks://", it will be treated as referring to all three of the socks5, socks4a, and socks4 proxy types.

Since

2.16

Parameters

scheme

the URI scheme to add a proxy for

proxyUri

the proxy URI to use for @uri_scheme