webkit-0.11.0: Binding to the Webkit library.

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net

Graphics.UI.Gtk.WebKit.WebDataSource

Contents

Description

Note

Function webkit_web_data_source_get_data haven't binding, no idea how to handle GString

Access to the WebKit Web DataSource

Synopsis

Types

Constructors

webDataSourceNew :: IO WebDataSourceSource

Creates a new WebDataSource instance. The URL of the WebDataSource will be set to about:blank.

Methods

webDataSourceGetEncoding :: WebDataSourceClass self => self -> IO StringSource

Returns the text encoding name as set in the WebView, or if not, the text encoding of the response.

webDataSourceGetInitialRequest :: WebDataSourceClass self => self -> IO NetworkRequestSource

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 committed load state. See webDataSourceGetRequest for getting the committed request.

webDataSourceGetMainResource :: WebDataSourceClass self => self -> IO WebResourceSource

Returns the main resource of the data_source

webDataSourceGetRequest :: WebDataSourceClass self => self -> IO NetworkRequestSource

Returns a NetworkRequest that was used to create this WebDataSource. The NetworkRequest returned by this method is the request that was committed, and hence, different from the request you get from the webDataSourceGetInitialRequest method.

webDataSourceGetSubresources :: WebDataSourceClass self => self -> IO [WebResource]Source

Gives you a List of WebResource objects that compose the WebView to which this WebDataSource is attached.

webDataSourceGetUnreachableUri :: WebDataSourceClass self => self -> IO StringSource

Return the unreachable URI of data_source. The dataSource will have an unreachable URL if it was created using WebFrame's webFrameLoadAlternateHtmlString method.

webDataSourceGetWebFrame :: WebDataSourceClass self => self -> IO WebFrameSource

Returns the WebFrame that represents this data source

webDataSourceIsLoading :: WebDataSourceClass self => self -> IO BoolSource

Determines whether the data source is in the process of loading its content.