Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell98 |
Note:
Function webkit_web_resource_get_data
haven't binding
no idea how to handle GString
.
Access to the WebKit Web Resource
- data WebResource
- class GObjectClass o => WebResourceClass o
- webResourceNew :: GlibString string => ByteString -> string -> string -> string -> string -> IO WebResource
- webResourceGetData :: WebResourceClass self => self -> IO (Maybe ByteString)
- webResourceGetEncoding :: (WebResourceClass self, GlibString string) => self -> IO (Maybe string)
- webResourceGetFrameName :: (WebResourceClass self, GlibString string) => self -> IO (Maybe string)
- webResourceGetMimeType :: (WebResourceClass self, GlibString string) => self -> IO (Maybe string)
- webResourceGetUri :: (WebResourceClass self, GlibString string) => self -> IO string
Description
A web resource encapsulates the data of the download as well as the URI, MIME type and frame name of the resource.
Types
data WebResource Source
class GObjectClass o => WebResourceClass o Source
Constructors
webResourceNew :: GlibString string => ByteString -> string -> string -> string -> string -> IO WebResource Source
Returns a new WebKitWebResource.
The encoding
can be empty.
The frameName
can be used if the resource represents contents of an
entire HTML frame, otherwise pass empty.
Methods
webResourceGetData :: WebResourceClass self => self -> IO (Maybe ByteString) Source
Returns the data of the WebResource.
webResourceGetEncoding :: (WebResourceClass self, GlibString string) => self -> IO (Maybe string) Source
Get encoding.
webResourceGetFrameName :: (WebResourceClass self, GlibString string) => self -> IO (Maybe string) Source
Get frame name.
webResourceGetMimeType :: (WebResourceClass self, GlibString string) => self -> IO (Maybe string) Source
Get mime type.
webResourceGetUri :: (WebResourceClass self, GlibString string) => self -> IO string Source
Get uri.