NetworkSession.this

this(void * ptr, Flag!"Take" take)
No documentation available for this declaration.
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 #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.WebsiteDataManager.getBaseDataDirectory] and [webkit.website_data_manager.WebsiteDataManager.getBaseCacheDirectory] always return a value for non ephemeral sessions.

It must be passed as construct parameter of a #WebKitWebView.

Parameters

dataDirectorya base directory for data, or null
cacheDirectorya base directory for caches, or null

Returns

the newly created #WebKitNetworkSession