webkit.network_session
Module for [NetworkSession] class
Types 3
Manages network configuration.
Methods
NetworkSession self()Returns `this`, for use in `with` statements.NetworkSessionGidBuilder builder()Get builder for [webkit.network_session.NetworkSession] Returns: New builder objectwebkit.network_session.NetworkSession newEphemeral()Creates a new #WebKitNetworkSession with an ephemeral #WebKitWebsiteDataManager. Returns: a new ephemeral #WebKitNetworkSession.webkit.network_session.NetworkSession getDefault()Get the default network session. The default network session is created using [webkit.networksession.NetworkSession.new] and passing null as data and cache directories. Returns: a #WebKitNetworkSes...void setMemoryPressureSettings(webkit.memory_pressure_settings.MemoryPressureSettings settings)Sets settings as the #WebKitMemoryPressureSettings.void allowTlsCertificateForHost(gio.tls_certificate.TlsCertificate certificate, string host)Ignore further TLS errors on the host for the certificate present in info.webkit.download.Download downloadUri(string uri)Requests downloading of the specified URI string.webkit.cookie_manager.CookieManager getCookieManager()Get the #WebKitCookieManager of session. Returns: a #WebKitCookieManagerbool getItpEnabled()Get whether Intelligent Tracking Prevention (ITP) is enabled or not. Returns: true if ITP is enabled, or false otherwise.void getItpSummary(gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously get the list of #WebKitITPThirdParty seen for session.webkit.itpthird_party.ITPThirdParty[] getItpSummaryFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.network_session.NetworkSession.getItpSummary].bool getPersistentCredentialStorageEnabled()Get whether persistent credential storage is enabled or not.webkit.types.TLSErrorsPolicy getTlsErrorsPolicy()Get the TLS errors policy of session. Returns: a #WebKitTLSErrorsPolicywebkit.website_data_manager.WebsiteDataManager getWebsiteDataManager()Get the #WebKitWebsiteDataManager of session. Returns: a #WebKitWebsiteDataManagerbool isEphemeral()Get whether session is ephemeral. A #WebKitNetworkSession is ephemeral when its #WebKitWebsiteDataManager is ephemeral. See #WebKitWebsiteDataManager:is-ephemeral for more details. Returns: true if...void prefetchDns(string hostname)Resolve the domain name of the given hostname in advance, so that if a URI of hostname is requested the load will be performed more quickly.void setItpEnabled(bool enabled)Enable or disable Intelligent Tracking Prevention (ITP).void setPersistentCredentialStorageEnabled(bool enabled)Enable or disable persistent credential storage.void setProxySettings(webkit.types.NetworkProxyMode proxyMode, webkit.network_proxy_settings.NetworkProxySettings proxySettings = null)Set the network proxy settings to be used by connections started in session session.void setTlsErrorsPolicy(webkit.types.TLSErrorsPolicy policy)Set the TLS errors policy of session as policy.gulong connectDownloadStarted(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.download.Download)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.network_session.NetworkSession)))
&& Parameters!T.length < 3)Connect to `DownloadStarted` signal.Constructors
this(string dataDirectory = null, string cacheDirectory = null)Creates a new #WebKitNetworkSession with a persistent #WebKitWebsiteDataManager. The parameters datadirectory and cachedirectory will be used as construct properties of the #WebKitWebsiteDataManage...Methods
T cacheDirectory(string propval)Set `cacheDirectory` property. Params: propval = The base caches directory used to create the #WebKitWebsiteDataManager. If null, a default location will be used. Returns: Builder instance for flue...T dataDirectory(string propval)Set `dataDirectory` property. Params: propval = The base data directory used to create the #WebKitWebsiteDataManager. If null, a default location will be used. Returns: Builder instance for fluent ...Fluent builder for [webkit.network_session.NetworkSession]
Methods