/usr/share/doc/libghc-webkit-doc/html/Graphics-UI-Gtk-WebKit-WebDataSource.html is in libghc-webkit-doc 0.12.3-5.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Graphics.UI.Gtk.WebKit.WebDataSource</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-UI-Gtk-WebKit-WebDataSource.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-WebKit-WebDataSource.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">webkit-0.12.3: Binding to the Webkit library.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable (depends on GHC)</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>gtk2hs-users@lists.sourceforge.net</td></tr><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Graphics.UI.Gtk.WebKit.WebDataSource</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Description
</a></li><li><a href="#g:2">Types
</a></li><li><a href="#g:3">Constructors
</a></li><li><a href="#g:4">Methods
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Note
</p><p>Function <code>webkit_web_data_source_get_data</code> haven't binding,
no idea how to handle <code><a href="/usr/share/doc/libghc-glib-doc/html/System-Glib-GString.html#t:GString">GString</a></code>
</p><p>Access to the WebKit Web DataSource
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:WebDataSource">WebDataSource</a> </li><li class="src short"><span class="keyword">class</span> <a href="/usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o => <a href="#t:WebDataSourceClass">WebDataSourceClass</a> o </li><li class="src short"><a href="#v:webDataSourceNew">webDataSourceNew</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSource">WebDataSource</a></li><li class="src short"><a href="#v:webDataSourceGetData">webDataSourceGetData</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>)</li><li class="src short"><a href="#v:webDataSourceGetEncoding">webDataSourceGetEncoding</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:webDataSourceGetInitialRequest">webDataSourceGetInitialRequest</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-WebKit-NetworkRequest.html#t:NetworkRequest">NetworkRequest</a></li><li class="src short"><a href="#v:webDataSourceGetMainResource">webDataSourceGetMainResource</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-WebKit-WebResource.html#t:WebResource">WebResource</a></li><li class="src short"><a href="#v:webDataSourceGetRequest">webDataSourceGetRequest</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-WebKit-NetworkRequest.html#t:NetworkRequest">NetworkRequest</a></li><li class="src short"><a href="#v:webDataSourceGetSubresources">webDataSourceGetSubresources</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> [<a href="Graphics-UI-Gtk-WebKit-WebResource.html#t:WebResource">WebResource</a>]</li><li class="src short"><a href="#v:webDataSourceGetUnreachableUri">webDataSourceGetUnreachableUri</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:webDataSourceGetWebFrame">webDataSourceGetWebFrame</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-WebKit-WebFrame.html#t:WebFrame">WebFrame</a></li><li class="src short"><a href="#v:webDataSourceIsLoading">webDataSourceIsLoading</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li></ul></div><div id="interface"><h1 id="g:1">Description
</h1><div class="doc"><p>Data source encapsulates the content of a WebKitWebFrame. A WebKitWebFrame has a main resource and
subresources and the data source provides access to these resources. When a request gets loaded
initially, it is set to a provisional state. The application can request for the request that
initiated the load by asking for the provisional data source and invoking the
<code><a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#v:webDataSourceGetInitialRequest">webDataSourceGetInitialRequest</a></code> method of WebKitWebDataSource. This data source may not
have enough data and some methods may return empty values. To get a <a href="full.html">full</a> data source with the data
and resources loaded, you need to get the non-provisional data source through WebKitWebFrame's
<code>webFrameGetDataSource</code> method. This data source will have the data after everything was
loaded. Make sure that the data source was finished loading before using any of its methods. You can
do this via <code><a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#v:webDataSourceIsLoading">webDataSourceIsLoading</a></code>.
</p></div><h1 id="g:2">Types
</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:WebDataSource" class="def">WebDataSource</a> <a href="src/Graphics-UI-Gtk-WebKit-Types.html#WebDataSource" class="link">Source</a></p><div class="subs instances"><p id="control.i:WebDataSource" class="caption collapser" onclick="toggleSection('i:WebDataSource')">Instances</p><div id="section.i:WebDataSource" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSource">WebDataSource</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSource">WebDataSource</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSource">WebDataSource</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSource">WebDataSource</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="/usr/share/doc/libghc-glib-doc/html/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o => <a name="t:WebDataSourceClass" class="def">WebDataSourceClass</a> o <a href="src/Graphics-UI-Gtk-WebKit-Types.html#WebDataSourceClass" class="link">Source</a></p><div class="subs instances"><p id="control.i:WebDataSourceClass" class="caption collapser" onclick="toggleSection('i:WebDataSourceClass')">Instances</p><div id="section.i:WebDataSourceClass" class="show"><table><tr><td class="src"><a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSource">WebDataSource</a></td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:3">Constructors
</h1><div class="top"><p class="src"><a name="v:webDataSourceNew" class="def">webDataSourceNew</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSource">WebDataSource</a><a href="src/Graphics-UI-Gtk-WebKit-WebDataSource.html#webDataSourceNew" class="link">Source</a></p><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSource">WebDataSource</a></code> instance.
The URL of the <code><a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSource">WebDataSource</a></code> will be set to <a href="about:blank.html">about:blank</a>.
</p></div></div><h1 id="g:4">Methods
</h1><div class="top"><p class="src"><a name="v:webDataSourceGetData" class="def">webDataSourceGetData</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>)<a href="src/Graphics-UI-Gtk-WebKit-WebDataSource.html#webDataSourceGetData" class="link">Source</a></p><div class="doc"><p>Returns the raw data that represents the the frame's content. The data will be incomplete until the
data has finished loading. Returns <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#v:Nothing">Nothing</a></code> if the web frame hasn't loaded any data. Use
<code>webkitWebDataSourceIsLoading</code> to test if data source is in the process of loading.
</p></div></div><div class="top"><p class="src"><a name="v:webDataSourceGetEncoding" class="def">webDataSourceGetEncoding</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/Graphics-UI-Gtk-WebKit-WebDataSource.html#webDataSourceGetEncoding" class="link">Source</a></p><div class="doc"><p>Returns the text encoding name as set in the <code><a href="Graphics-UI-Gtk-WebKit-WebView.html#t:WebView">WebView</a></code>, or if not, the text encoding of the response.
</p></div></div><div class="top"><p class="src"><a name="v:webDataSourceGetInitialRequest" class="def">webDataSourceGetInitialRequest</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-WebKit-NetworkRequest.html#t:NetworkRequest">NetworkRequest</a><a href="src/Graphics-UI-Gtk-WebKit-WebDataSource.html#webDataSourceGetInitialRequest" class="link">Source</a></p><div class="doc"><p>Returns a reference to the original request that was used to load the web content.
The NetworkRequest returned by this method is the
request prior to the <a href="committed.html">committed</a> load state.
See <code><a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#v:webDataSourceGetRequest">webDataSourceGetRequest</a></code> for getting the <a href="committed.html">committed</a> request.
</p></div></div><div class="top"><p class="src"><a name="v:webDataSourceGetMainResource" class="def">webDataSourceGetMainResource</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-WebKit-WebResource.html#t:WebResource">WebResource</a><a href="src/Graphics-UI-Gtk-WebKit-WebDataSource.html#webDataSourceGetMainResource" class="link">Source</a></p><div class="doc"><p>Returns the main resource of the data_source
</p></div></div><div class="top"><p class="src"><a name="v:webDataSourceGetRequest" class="def">webDataSourceGetRequest</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-WebKit-NetworkRequest.html#t:NetworkRequest">NetworkRequest</a><a href="src/Graphics-UI-Gtk-WebKit-WebDataSource.html#webDataSourceGetRequest" class="link">Source</a></p><div class="doc"><p>Returns a NetworkRequest that was used to create this <code><a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSource">WebDataSource</a></code>.
The NetworkRequest returned by this method is the request that was <a href="committed.html">committed</a>,
and hence, different from the request you get from the <code><a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#v:webDataSourceGetInitialRequest">webDataSourceGetInitialRequest</a></code> method.
</p></div></div><div class="top"><p class="src"><a name="v:webDataSourceGetSubresources" class="def">webDataSourceGetSubresources</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> [<a href="Graphics-UI-Gtk-WebKit-WebResource.html#t:WebResource">WebResource</a>]<a href="src/Graphics-UI-Gtk-WebKit-WebDataSource.html#webDataSourceGetSubresources" class="link">Source</a></p><div class="doc"><p>Gives you a List of <code><a href="Graphics-UI-Gtk-WebKit-WebResource.html#t:WebResource">WebResource</a></code> objects that compose the <code><a href="Graphics-UI-Gtk-WebKit-WebView.html#t:WebView">WebView</a></code> to which this <code><a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSource">WebDataSource</a></code> is attached.
</p></div></div><div class="top"><p class="src"><a name="v:webDataSourceGetUnreachableUri" class="def">webDataSourceGetUnreachableUri</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/Graphics-UI-Gtk-WebKit-WebDataSource.html#webDataSourceGetUnreachableUri" class="link">Source</a></p><div class="doc"><p>Return the unreachable URI of data_source.
The <code>dataSource</code> will have an unreachable URL
if it was created using <code>WebFrame'</code>s
<code>webFrameLoadAlternateHtmlString</code> method.
</p></div></div><div class="top"><p class="src"><a name="v:webDataSourceGetWebFrame" class="def">webDataSourceGetWebFrame</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-WebKit-WebFrame.html#t:WebFrame">WebFrame</a><a href="src/Graphics-UI-Gtk-WebKit-WebDataSource.html#webDataSourceGetWebFrame" class="link">Source</a></p><div class="doc"><p>Returns the <code><a href="Graphics-UI-Gtk-WebKit-WebFrame.html#t:WebFrame">WebFrame</a></code> that represents this data source
</p></div></div><div class="top"><p class="src"><a name="v:webDataSourceIsLoading" class="def">webDataSourceIsLoading</a> :: <a href="Graphics-UI-Gtk-WebKit-WebDataSource.html#t:WebDataSourceClass">WebDataSourceClass</a> self => self -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-UI-Gtk-WebKit-WebDataSource.html#webDataSourceIsLoading" class="link">Source</a></p><div class="doc"><p>Determines whether the data source is in the process of loading its content.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>
|