NetworkSession
Object Hierarchy:
Description:
[ CCode ( type_id = "webkit_network_session_get_type ()" ) ]
[ Version ( since = "2.40" ) ]
public sealed class NetworkSession : Object
[ Version ( since = "2.40" ) ]
public sealed class NetworkSession : Object
Manages network configuration.
Namespace: WebKit
Package: webkitgtk-6.0
Content:
Properties:
- public string cache_directory { construct; }
The base caches directory used to create the WebsiteDataManager.
- public string data_directory { construct; }
The base data directory used to create the WebsiteDataManager.
- public bool is_ephemeral { get; construct; }
Whether to create an ephermeral WebsiteDataManager for the session.
Static methods:
- public static unowned NetworkSession get_default ()
Get the default network session.
- public static void set_memory_pressure_settings (MemoryPressureSettings settings)
Sets
settings
as the MemoryPressureSettings.
Creation methods:
- public NetworkSession (string? data_directory, string? cache_directory)
Creates a new NetworkSession with a persistent WebsiteDataManager.
- public NetworkSession.ephemeral ()
Creates a new NetworkSession with an ephemeral WebsiteDataManager.
Methods:
- public void allow_tls_certificate_for_host (TlsCertificate certificate, string host)
Ignore further TLS errors on the
host
for the certificate present ininfo
. - public Download download_uri (string uri)
Requests downloading of the specified URI string.
- public unowned CookieManager get_cookie_manager ()
Get the CookieManager of this.
- public bool get_itp_enabled ()
Get whether Intelligent Tracking Prevention (ITP) is enabled or not.
- public async List<ITPThirdParty> get_itp_summary (Cancellable? cancellable = null) throws Error
Asynchronously get the list of ITPThirdParty seen for this.
- public bool get_persistent_credential_storage_enabled ()
Get whether persistent credential storage is enabled or not.
- public TLSErrorsPolicy get_tls_errors_policy ()
Get the TLS errors policy of this.
- public unowned WebsiteDataManager get_website_data_manager ()
Get the WebsiteDataManager of this.
- public void prefetch_dns (string hostname)
Resolve the domain name of the given
hostname
in advance, so that if a URI ofhostname
is requested the load will be performed more quickly. - public void set_itp_enabled (bool enabled)
Enable or disable Intelligent Tracking Prevention (ITP).
- public void set_persistent_credential_storage_enabled (bool enabled)
Enable or disable persistent credential storage.
- 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.
- public void set_tls_errors_policy (TLSErrorsPolicy policy)
Set the TLS errors policy of this as
policy
.
Signals:
- public signal void download_started (Download download)
This signal is emitted when a new download request is made.
Inherited Members:
All known members inherited from class GLib.Object