Configures network proxies.
WebKitNetworkProxySettings can be used to provide a custom proxy
configuration to a <WebKitNetworkSession>.
You need to call
webkit_network_session_set_network_proxy_settings() with
custom and a WebKitNetworkProxySettings.
Adds a URI-scheme-specific proxy.
URIs whose scheme matches uri-scheme will be proxied via proxy-uri. As with the default proxy URI, if proxy-uri starts with "socks://", it will be treated as referring to all three of the socks5, socks4a, and socks4 proxy types.
Passed: a
<WebKitNetworkProxySettings>.
Passed: a string.
the URI scheme to add a proxy for
Passed: a string.
the proxy URI to use for uri-scheme
Make a copy of the
<WebKitNetworkProxySettings>.
Passed: a
<WebKitNetworkProxySettings>.
Returned: a
<WebKitNetworkProxySettings>.
A copy of passed in
<WebKitNetworkProxySettings>
Free the
<WebKitNetworkProxySettings>.
Passed: a
<WebKitNetworkProxySettings>.
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
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.
ignore-hosts is a list of hostnames and IP addresses that the resolver should allow direct connections to. Entries can be in one of 4 formats:
Note that when dealing with Unicode hostnames, the matching is done against the ASCII form of the name. Also note that hostname exclusions apply only to connections made to hosts identified by name, and IP address exclusions apply only to connections made to hosts identified by address. That is, if example.com has an address of 192.168.1.1, and ignore-hosts contains only "192.168.1.1", then a connection to "example.com" will use the proxy, and a connection to 192.168.1.1" will not.
Passed, or left out: a string, or #f.
the default proxy URI to use, or #f.
Passed, or left out: a list or vector, each a string, or #f.
an optional list of hosts/IP addresses to not use a proxy for.
Returned: a
<WebKitNetworkProxySettings>.
A new <WebKitNetworkProxySettings>.