SimpleProxyResolver.new_

gio.proxy_resolver.ProxyResolver new_(string defaultProxy = null, string[] ignoreHosts = null)

Creates a new #GSimpleProxyResolver. See #GSimpleProxyResolver:default-proxy and #GSimpleProxyResolver:ignore-hosts for more details on how the arguments are interpreted.

Parameters

defaultProxythe default proxy to use, eg "socks://192.168.1.1"
ignoreHostsan optional list of hosts/IP addresses to not use a proxy for.

Returns

a new #GSimpleProxyResolver