/usr/share/doc/ubuntu-web/html/qml-ubuntu-web-webcontext.html is in qml-module-ubuntu-web-doc 0.23+16.04.20160413-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- WebContext.qdoc -->
<title>WebContext QML Type | UbuntuWeb 0.2</title>
<link rel="stylesheet" type="text/css" href="style/qtquick.css" />
<link rel="stylesheet" type="text/css" href="style/base.css" />
<link rel="stylesheet" type="text/css" href="style/custom.css" />
</head>
<body>
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">WebContext QML Type</h1>
<span class="subtitle"></span>
<!-- $$$WebContext-brief -->
<p>A default context implementation for use with <a href="qml-ubuntu-web-webview.html">WebView</a>. <a href="#details">More...</a></p>
<!-- @@@WebContext -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import Ubuntu.Web 0.2</td></tr></table></div><ul>
<li><a href="qml-ubuntu-web-webcontext-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-ubuntu-web-webcontext.html#acceptLangs-prop">acceptLangs</a></b></b> : string</li>
<li class="fn"><b><b><a href="qml-ubuntu-web-webcontext.html#cachePath-prop">cachePath</a></b></b> : url</li>
<li class="fn"><b><b><a href="qml-ubuntu-web-webcontext.html#dataPath-prop">dataPath</a></b></b> : url</li>
<li class="fn"><b><b><a href="qml-ubuntu-web-webcontext.html#userAgent-prop">userAgent</a></b></b> : string</li>
</ul>
<!-- $$$WebContext-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
</p>
<p>This default <a href="qml-ubuntu-web-webcontext.html">WebContext</a> implementation has the default user agent string used by the Ubuntu browser as well as the UA override mechanism that allows sending an overridden user agent for given domains/websites, based on the form factor.</p>
<p>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 <code>Qt.application.name</code>), for example <i>~/.local/share/myApp/</i>.</p>
<p>Note that the <a href="qml-ubuntu-web-webview.html">WebView</a> component already uses this default context, so there is no need to explicitly instantiate a <code>WebContext</code> unless you want to override some of its default properties.</p>
<p><b>See also </b><a href="qml-ubuntu-web-sharedwebcontext.html">SharedWebContext</a>.</p>
<!-- @@@WebContext -->
<h2>Property Documentation</h2>
<!-- $$$acceptLangs -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="acceptLangs-prop"><td class="tblQmlPropNode"><p><a name="acceptLangs-prop"></a><span class="name">acceptLangs</span> : <span class="type">string</span></p></td></tr></table></div></div><div class="qmldoc"><p>The list of accepted languages (the Accept-Language HTTP header), as a comma-separated list of language codes.</p>
</div></div><!-- @@@acceptLangs -->
<br/>
<!-- $$$cachePath -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="cachePath-prop"><td class="tblQmlPropNode"><p><a name="cachePath-prop"></a><span class="name">cachePath</span> : <span class="type">url</span></p></td></tr></table></div></div><div class="qmldoc"><p>The local path where network data will be cached. If not set, it defaults to <a href="qml-ubuntu-web-webcontext.html#dataPath-prop">dataPath</a>.</p>
</div></div><!-- @@@cachePath -->
<br/>
<!-- $$$dataPath -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="dataPath-prop"><td class="tblQmlPropNode"><p><a name="dataPath-prop"></a><span class="name">dataPath</span> : <span class="type">url</span></p></td></tr></table></div></div><div class="qmldoc"><p>The local path where persistent data (such as cookies) will be stored.</p>
</div></div><!-- @@@dataPath -->
<br/>
<!-- $$$userAgent -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="userAgent-prop"><td class="tblQmlPropNode"><p><a name="userAgent-prop"></a><span class="name">userAgent</span> : <span class="type">string</span></p></td></tr></table></div></div><div class="qmldoc"><p>The default user agent string that will be sent with each HTTP request.</p>
</div></div><!-- @@@userAgent -->
<br/>
</body>
</html>
|