Gio.SimpleProxyResolver.prototype.set_uri_proxy

function set_uri_proxy(uri_scheme: String, proxy: String): void {
    // Gjs wrapper for g_simple_proxy_resolver_set_uri_proxy()
}
  

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

As with Gio.SimpleProxyResolver.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.

Since 2.36

uri_scheme

the URI scheme to add a proxy for

proxy

the proxy to use for uri_scheme