set_proxy_settings


Description:

public void set_proxy_settings (NetworkProxyMode proxy_mode, NetworkProxySettings? proxy_settings)

Set the network proxy settings to be used by connections started in this session.

By default webkit_network_proxy_mode_default is used, which means that the system settings will be used ( 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 NetworkProxySettings; otherwise, proxy_settings must be null.

Parameters:

this

a NetworkSession

proxy_mode

a NetworkProxyMode

proxy_settings

a NetworkProxySettings, or null