Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
Note
Function webkit_web_data_source_get_data
haven't binding,
no idea how to handle GString
Access to the WebKit Web DataSource
- data WebDataSource
- class GObjectClass o => WebDataSourceClass o
- webDataSourceNew :: IO WebDataSource
- webDataSourceGetEncoding :: WebDataSourceClass self => self -> IO String
- webDataSourceGetInitialRequest :: WebDataSourceClass self => self -> IO NetworkRequest
- webDataSourceGetMainResource :: WebDataSourceClass self => self -> IO WebResource
- webDataSourceGetRequest :: WebDataSourceClass self => self -> IO NetworkRequest
- webDataSourceGetSubresources :: WebDataSourceClass self => self -> IO [WebResource]
- webDataSourceGetUnreachableUri :: WebDataSourceClass self => self -> IO String
- webDataSourceGetWebFrame :: WebDataSourceClass self => self -> IO WebFrame
- webDataSourceIsLoading :: WebDataSourceClass self => self -> IO Bool
Types
data WebDataSource Source
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.