The base caches directory used to create the
<WebKitWebsiteDataManager>. If
#f, a default location will be used.
Its value is a string, or #f.
It can only be set when the object is made, with
#:cache-directory. It cannot be read.
The base data directory used to create the
<WebKitWebsiteDataManager>. If
#f, a default location will be used.
Its value is a string, or #f.
It can only be set when the object is made, with
#:data-directory. It cannot be read.
Whether to create an ephermeral
<WebKitWebsiteDataManager> for the
session.
Its value is a boolean.
It can only be set when the object is made, with #:is-ephemeral.
Ignore further TLS errors on the host for the certificate present in info.
If host is an IPv6 address, it should not be surrounded by
brackets. This expectation matches uri:get-host.
Passed: a <WebKitNetworkSession>.
Passed: a <GTlsCertificate>.
Passed: a string.
the host for which a certificate is to be allowed
Requests downloading of the specified URI string.
The download operation will not be associated to any
<WebKitWebView>, if you are interested in starting
a download from a particular <WebKitWebView> use
web-view:download-uri instead.
Passed: a <WebKitNetworkSession>.
Passed: a string.
the URI to download
Returned: a <WebKitDownload>.
a new <WebKitDownload> representing the download
operation.
Get the <WebKitCookieManager> of self.
Passed: a <WebKitNetworkSession>.
Returned: a <WebKitCookieManager>.
Get the default network session. The default network session is created
using network-session:new and passing
#f as data and cache directories.
Returned: a <WebKitNetworkSession>.
Get whether Intelligent Tracking Prevention (ITP) is enabled or not.
Passed: a <WebKitNetworkSession>.
Returned: a boolean.
#t if ITP is enabled, or #f otherwise.
Asynchronously get the list of
<WebKitITPThirdParty> seen for self.
Every <WebKitITPThirdParty> contains the
list of <WebKitITPFirstParty> under which it
has been seen.
When the operation is finished, callback will be called. You can
then call network-session:get-itp-summary-finish to get
the result of the operation.
Passed: a <WebKitNetworkSession>.
Passed, or left out: a <GCancellable>, or
#f.
a <GCancellable> or #f to ignore
Passed, or left out: a procedure, or #f.
a GAsyncReadyCallback to call when
the request is satisfied
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
the data to pass to callback function
Finish an asynchronous operation started with network-session:get-itp-summary.
Passed: a <WebKitNetworkSession>.
Passed: a <GAsyncResult>.
Returned: a list, each a
<WebKitITPThirdParty>.
a GList of <WebKitITPThirdParty>. You
must free the GList with g_list_free() and unref the
<WebKitITPThirdParty><!– –>s with
itpthird-party:unref when you’re done
with them.
Get whether persistent credential storage is enabled or not.
See also network-session:set-persistent-credential-storage-enabled.
Passed: a <WebKitNetworkSession>.
Returned: a boolean.
#t if persistent credential storage is enabled, or #f
otherwise.
Get the TLS errors policy of self.
Passed: a <WebKitNetworkSession>.
Returned: a <WebKitTLSErrorsPolicy>.
Get the <WebKitWebsiteDataManager> of
self.
Passed: a <WebKitNetworkSession>.
Returned: a <WebKitWebsiteDataManager>.
Get whether self is ephemeral. A
<WebKitNetworkSession> is ephemeral when
its <WebKitWebsiteDataManager> is
ephemeral. See website-data-manager:is-ephemeral for more details.
Passed: a <WebKitNetworkSession>.
Returned: a boolean.
#t if self is pehmeral, or #f otherwise
Creates a new <WebKitNetworkSession> with a
persistent <WebKitWebsiteDataManager>.
The parameters data-directory and cache-directory will be
used as construct properties of the
<WebKitWebsiteDataManager> of the
network session. Note that if #f is passed, the default
directory will be passed to
<WebKitWebsiteDataManager> so that
website-data-manager:get-base-data-directory
and website-data-manager:get-base-cache-directory
always return a value for non ephemeral sessions.
It must be passed as construct parameter of a
<WebKitWebView>.
Passed, or left out: a string, or #f.
a base directory for data, or #f
Passed, or left out: a string, or #f.
a base directory for caches, or #f
Returned: a <WebKitNetworkSession>.
the newly created <WebKitNetworkSession>
Creates a new <WebKitNetworkSession> with
an ephemeral
<WebKitWebsiteDataManager>.
Returned: a <WebKitNetworkSession>.
a new ephemeral <WebKitNetworkSession>.
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.
Passed: a <WebKitNetworkSession>.
Passed: a string.
a hostname to be resolved
Enable or disable Intelligent Tracking Prevention (ITP).
When ITP is enabled resource load statistics are collected and used to
decide whether to allow or block third-party cookies and prevent user
tracking. Note that while ITP is enabled the accept policy
no-third-party is ignored and
always is used instead. See also
webkit_cookie_session_set_accept_policy().
Passed: a <WebKitNetworkSession>.
Passed: a boolean.
value to set
Sets settings as the
<WebKitMemoryPressureSettings>.
Sets settings as the
<WebKitMemoryPressureSettings> to
be used by the network process created by any instance of
<WebKitNetworkSession> after this function
is called.
Be sure to call this function before creating any
<WebKitNetworkSession>.
The periodic check for used memory is disabled by default on network
processes. This will be enabled only if custom settings have been set
using this function. After that, in order to remove the custom settings
and disable the periodic check, this function must be called passing
#f as the value of settings.
Passed: a
<WebKitMemoryPressureSettings>.
a WebKitMemoryPressureSettings.
Enable or disable persistent credential storage.
When enabled, which is the default for non-ephemeral sessions, the network process will try to read and write HTTP authentiacation credentials from persistent storage.
Passed: a <WebKitNetworkSession>.
Passed: a boolean.
value to set
Set the network proxy settings to be used by connections started in self session.
By default default is used, which means
that the system settings will be used
(proxy-resolver-get-default).
If you want to override the system default settings, you can either use
no-proxy to make sure no proxies are used
at all, or custom to provide your own
proxy settings. When proxy-mode is
custom proxy-settings must be a
valid <WebKitNetworkProxySettings>;
otherwise, proxy-settings must be #f.
Passed: a <WebKitNetworkSession>.
Passed: a <WebKitNetworkProxyMode>, or
one of its symbols.
Passed, or left out: a
<WebKitNetworkProxySettings>, or
#f.
a <WebKitNetworkProxySettings>, or
#f
Set the TLS errors policy of self as policy.
Passed: a <WebKitNetworkSession>.
Passed: a <WebKitTLSErrorsPolicy>, or one
of its symbols.
Connect a handler with (connect object
network-session:download-started handler). It is called as
(handler self download).
This signal is emitted when a new download request is made.
Passed: a <WebKitNetworkSession>.
Passed: a <WebKitDownload>.
the <WebKitDownload> associated with this event