setUriProxy

open fun setUriProxy(uriScheme: String, proxy: String)

Adds a URI-scheme-specific proxy to @resolver; URIs whose scheme matches @uri_scheme (and which don't match #GSimpleProxyResolver:ignore-hosts) will be proxied via @proxy.

As with #GSimpleProxyResolver:default-proxy, if @proxy starts with "socks://", #GSimpleProxyResolver will treat it as referring to all three of the socks5, socks4a, and socks4 proxy types.

Since

2.36

Parameters

uriScheme

the URI scheme to add a proxy for

proxy

the proxy to use for @uri_scheme