WebContext.setNetworkProxySettings

Set the network proxy settings to be used by connections started in @context. By default %WEBKIT_NETWORK_PROXY_MODE_DEFAULT is used, which means that the system settings will be used (g_proxy_resolver_get_default()). If you want to override the system default settings, you can either use %WEBKIT_NETWORK_PROXY_MODE_NO_PROXY to make sure no proxies are used at all, or %WEBKIT_NETWORK_PROXY_MODE_CUSTOM to provide your own proxy settings. When @proxy_mode is %WEBKIT_NETWORK_PROXY_MODE_CUSTOM @proxy_settings must be a valid #WebKitNetworkProxySettings; otherwise, @proxy_settings must be %NULL.

class WebContext
void
setNetworkProxySettings

Parameters

proxyMode WebKitNetworkProxyMode

a #WebKitNetworkProxyMode

proxySettings NetworkProxySettings

a #WebKitNetworkProxySettings, or %NULL

Meta

Since

2.16