A default context implementation for use with WebView. More...
Import Statement: | import Morph.Web 0.2 |
This default WebContext implementation has the default user agent string used by the Morph browser as well as the UA override mechanism that allows sending an overridden user agent for given domains/websites, based on the form factor.
It has its data path (for cache and cookie database) set to the standard writable data location for the current application, which is based on the application name (see Qt.application.name
), for example ~/.local/share/myApp/.
Note that the WebView component already uses this default context, so there is no need to explicitly instantiate a WebContext
unless you want to override some of its default properties.
See also SharedWebContext.
The list of accepted languages (the Accept-Language HTTP header), as a comma-separated list of language codes.
The local path where network data will be cached. If not set, it defaults to dataPath.