set_network_proxy_settings


Description:

[ Version ( deprecated = true , deprecated_since = "2.32." , since = "2.16" ) ]
public void set_network_proxy_settings (NetworkProxyMode proxy_mode, NetworkProxySettings? proxy_settings)

Warning: set_network_proxy_settings is deprecated since 2.32..

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

Note:

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 WebContext

proxy_mode

a NetworkProxyMode

proxy_settings

a NetworkProxySettings, or null




2022 vala-language.org