webkit.network_session

Module for [NetworkSession] class

Types 3

Manages network configuration.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
NetworkSession self() nothrowReturns `this`, for use in `with` statements.
NetworkSessionGidBuilder builder() static nothrowGet builder for [webkit.network_session.NetworkSession] Returns: New builder object
webkit.network_session.NetworkSession newEphemeral() static nothrowCreates a new #WebKitNetworkSession with an ephemeral #WebKitWebsiteDataManager. Returns: a new ephemeral #WebKitNetworkSession.
webkit.network_session.NetworkSession getDefault() static nothrowGet the default network session. The default network session is created using [webkit.network_session.NetworkSession.new_] and passing null as data and cache directories. Returns: a #WebKitNetworkS...
void setMemoryPressureSettings(webkit.memory_pressure_settings.MemoryPressureSettings settings) static nothrowSets settings as the #WebKitMemoryPressureSettings.
void allowTlsCertificateForHost(gio.tls_certificate.TlsCertificate certificate, string host) nothrowIgnore further TLS errors on the host for the certificate present in info.
webkit.download.Download downloadUri(string uri) nothrowRequests downloading of the specified URI string.
webkit.cookie_manager.CookieManager getCookieManager() nothrowGet the #WebKitCookieManager of session. Returns: a #WebKitCookieManager
bool getItpEnabled() nothrowGet 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) nothrowAsynchronously 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() nothrowGet whether persistent credential storage is enabled or not.
webkit.types.TLSErrorsPolicy getTlsErrorsPolicy() nothrowGet the TLS errors policy of session. Returns: a #WebKitTLSErrorsPolicy
webkit.website_data_manager.WebsiteDataManager getWebsiteDataManager() nothrowGet the #WebKitWebsiteDataManager of session. Returns: a #WebKitWebsiteDataManager
bool isEphemeral() nothrowGet 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) nothrowResolve 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) nothrowEnable or disable Intelligent Tracking Prevention (ITP).
void setPersistentCredentialStorageEnabled(bool enabled) nothrowEnable or disable persistent credential storage.
void setProxySettings(webkit.types.NetworkProxyMode proxyMode, webkit.network_proxy_settings.NetworkProxySettings proxySettings = null) nothrowSet the network proxy settings to be used by connections started in session session.
void setTlsErrorsPolicy(webkit.types.TLSErrorsPolicy policy) nothrowSet 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) nothrowConnect to `DownloadStarted` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this(string dataDirectory = null, string cacheDirectory = null)Creates a new #WebKitNetworkSession with a persistent #WebKitWebsiteDataManager. The parameters data_directory and cache_directory will be used as construct properties of the #WebKitWebsiteDataMana...

Fluent builder implementation template for webkit.network_session.NetworkSession

Methods
T cacheDirectory(string propval) nothrowSet `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) nothrowSet `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 ...
Methods
NetworkSession build() nothrowCreate object from builder. Returns: New object