SimpleProxyResolver.setUriProxy

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

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

class SimpleProxyResolver
void
setUriProxy
(
string uriScheme
,
string proxy
)

Parameters

uriScheme string

the URI scheme to add a proxy for

proxy string

the proxy to use for uri_scheme

Meta

Since

2.36