gi-webkit-3.0.14: WebKit bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit.Objects.WebResource

Contents

Description

A web resource encapsulates the data of the download as well as the URI, MIME type and frame name of the resource.

Synopsis

Exported types

Methods

getData

webResourceGetData Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebResource a) 
=> a

webResource: a WebResource

-> m String

Returns: a String containing the character data of the webResource. The string is owned by WebKit and should not be freed or destroyed.

Returns the data of the webResource.

Since: 1.1.14

getEncoding

webResourceGetEncoding Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebResource a) 
=> a

webResource: a WebResource

-> m Text

Returns: the encoding name of the resource

No description available in the introspection data.

Since: 1.1.14

getFrameName

webResourceGetFrameName Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebResource a) 
=> a

webResource: a WebResource

-> m Text

Returns: the frame name of the resource.

No description available in the introspection data.

Since: 1.1.14

getMimeType

webResourceGetMimeType Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebResource a) 
=> a

webResource: a WebResource

-> m Text

Returns: the MIME type of the resource

No description available in the introspection data.

Since: 1.1.14

getUri

webResourceGetUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebResource a) 
=> a

webResource: a WebResource

-> m Text

Returns: the URI of the resource

No description available in the introspection data.

Since: 1.1.14

new

webResourceNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

data: the data to initialize the WebResource

-> Int64

size: the length of data

-> Text

uri: the URI of the WebResource

-> Text

mimeType: the MIME type of the WebResource

-> Text

encoding: the text encoding name of the WebResource

-> Text

frameName: the frame name of the WebResource

-> m WebResource

Returns: a new WebResource

Returns a new WebResource. The encoding can be Nothing. The frameName argument can be used if the resource represents contents of an entire HTML frame, otherwise pass Nothing.

Since: 1.1.14

Properties

encoding

frameName

mimeType

uri

Signals

contentLengthReceived

loadFailed

type C_WebResourceLoadFailedCallback = Ptr () -> Ptr () -> Ptr () -> IO () Source #

loadFinished

responseReceived