@new


Description:

public static ProxyResolver @new (string? default_proxy, string? ignore_hosts)

Creates a new SimpleProxyResolver.

See default_proxy and ignore_hosts for more details on how the arguments are interpreted.

Parameters:

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 SimpleProxyResolver