Class
WebKitNetworkSession
unstable since: 2.40
Description [src]
class WebKit.NetworkSession : GObject.Object {
parent: GObject
}
Manages network configuration.
Available since: 2.40
Constructors
webkit_network_session_new
Creates a new WebKitNetworkSession
with a persistent WebKitWebsiteDataManager
.
The parameters data_directory
and cache_directrory
will be used as construct
properties of the WebKitWebsiteDataManager
of the network session. Note that if
NULL
is passed, the default directory will be passed to WebKitWebsiteDataManager
so that webkit_website_data_manager_get_base_data_directory()
and
webkit_website_data_manager_get_base_cache_directory()
always return a value for
non ephemeral sessions.
unstable since: 2.40
webkit_network_session_new_ephemeral
Creates a new WebKitNetworkSession
with an ephemeral WebKitWebsiteDataManager
.
unstable since: 2.40
Functions
webkit_network_session_get_default
Get the default network session.
The default network session is created using webkit_network_session_new()
and passing
NULL
as data and cache directories.
unstable since: 2.40
webkit_network_session_set_memory_pressure_settings
Sets settings
as the WebKitMemoryPressureSettings
.
unstable since: 2.40
Instance methods
webkit_network_session_allow_tls_certificate_for_host
Ignore further TLS errors on the host
for the certificate present in info
.
unstable since: 2.40
webkit_network_session_download_uri
Requests downloading of the specified URI string.
unstable since: 2.40
webkit_network_session_get_cookie_manager
Get the WebKitCookieManager
of session
.
unstable since: 2.40
webkit_network_session_get_itp_enabled
Get whether Intelligent Tracking Prevention (ITP) is enabled or not.
unstable since: 2.40
webkit_network_session_get_itp_summary
Asynchronously get the list of WebKitITPThirdParty
seen for session
.
unstable since: 2.40
webkit_network_session_get_itp_summary_finish
Finish an asynchronous operation started with webkit_network_session_get_itp_summary().
unstable since: 2.40
webkit_network_session_get_persistent_credential_storage_enabled
Get whether persistent credential storage is enabled or not.
unstable since: 2.40
webkit_network_session_get_tls_errors_policy
Get the TLS errors policy of session
.
unstable since: 2.40
webkit_network_session_get_website_data_manager
Get the WebKitWebsiteDataManager
of session
.
unstable since: 2.40
webkit_network_session_is_ephemeral
Get whether session
is ephemeral.
A WebKitNetworkSession
is ephemeral when its WebKitWebsiteDataManager
is ephemeral.
See WebKitWebsiteDataManager:is-ephemeral
for more details.
unstable since: 2.40
webkit_network_session_prefetch_dns
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.
unstable since: 2.40
webkit_network_session_set_itp_enabled
Enable or disable Intelligent Tracking Prevention (ITP).
unstable since: 2.40
webkit_network_session_set_persistent_credential_storage_enabled
Enable or disable persistent credential storage.
unstable since: 2.40
webkit_network_session_set_proxy_settings
Set the network proxy settings to be used by connections started in session
session.
unstable since: 2.40
webkit_network_session_set_tls_errors_policy
Set the TLS errors policy of session
as policy
.
unstable since: 2.40
Properties
WebKit.NetworkSession:cache-directory
The base caches directory used to create the WebKitWebsiteDataManager
. If NULL
, a default location will be used.
unstable since: 2.40
WebKit.NetworkSession:data-directory
The base data directory used to create the WebKitWebsiteDataManager
. If NULL
, a default location will be used.
unstable since: 2.40
WebKit.NetworkSession:is-ephemeral
Whether to create an ephermeral WebKitWebsiteDataManager
for the session.
unstable since: 2.40
Signals
WebKit.NetworkSession::download-started
This signal is emitted when a new download request is made.
unstable since: 2.40
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct WebKitNetworkSessionClass {
GObjectClass parent_class;
void (* _webkit_reserved0) (
void
);
void (* _webkit_reserved1) (
void
);
void (* _webkit_reserved2) (
void
);
void (* _webkit_reserved3) (
void
);
}
Class members
parent_class: GObjectClass
- No description available.
_webkit_reserved0: void (* _webkit_reserved0) ( void )
- No description available.
_webkit_reserved1: void (* _webkit_reserved1) ( void )
- No description available.
_webkit_reserved2: void (* _webkit_reserved2) ( void )
- No description available.
_webkit_reserved3: void (* _webkit_reserved3) ( void )
- No description available.