Gio.SimpleProxyResolver.new

function new(default_proxy: String, ignore_hosts: String): Gio.ProxyResolver {
    // Gjs wrapper for g_simple_proxy_resolver_new()
}
  

Creates a new Gio.SimpleProxyResolver. See Gio.SimpleProxyResolver.default_proxy and Gio.SimpleProxyResolver.ignore_hosts for more details on how the arguments are interpreted.

Since 2.36

default_proxy

the default proxy to use, eg "socks://192.168.1.1"

ignore_hosts

an optional list of hosts/IP addresses to not use a proxy for.

Returns

a new Gio.SimpleProxyResolver