new

fun new(defaultProxyUri: String? = null, ignoreHosts: List<String>? = null): NetworkProxySettings

Create a new #WebKitNetworkProxySettings with the given @default_proxy_uri and @ignore_hosts.

The default proxy URI will be used for any URI that doesn't match @ignore_hosts, and doesn't match any of the schemes added with webkit_network_proxy_settings_add_proxy_for_scheme(). If @default_proxy_uri starts with "socks://", it will be treated as referring to all three of the socks5, socks4a, and socks4 proxy types.

Return

A new #WebKitNetworkProxySettings.

Since

2.16

Parameters

defaultProxyUri

the default proxy URI to use, or null.

ignoreHosts

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