gi-webkit-3.0.12: 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

data WebResourceEncodingPropertyInfo Source #

Instances

AttrInfo WebResourceEncodingPropertyInfo Source # 
type AttrOrigin WebResourceEncodingPropertyInfo Source # 
type AttrLabel WebResourceEncodingPropertyInfo Source # 
type AttrGetType WebResourceEncodingPropertyInfo Source # 
type AttrBaseTypeConstraint WebResourceEncodingPropertyInfo Source # 
type AttrSetTypeConstraint WebResourceEncodingPropertyInfo Source # 
type AttrAllowedOps WebResourceEncodingPropertyInfo Source # 

frameName

data WebResourceFrameNamePropertyInfo Source #

Instances

AttrInfo WebResourceFrameNamePropertyInfo Source # 
type AttrOrigin WebResourceFrameNamePropertyInfo Source # 
type AttrLabel WebResourceFrameNamePropertyInfo Source # 
type AttrGetType WebResourceFrameNamePropertyInfo Source # 
type AttrBaseTypeConstraint WebResourceFrameNamePropertyInfo Source # 
type AttrSetTypeConstraint WebResourceFrameNamePropertyInfo Source # 
type AttrAllowedOps WebResourceFrameNamePropertyInfo Source # 

mimeType

data WebResourceMimeTypePropertyInfo Source #

Instances

AttrInfo WebResourceMimeTypePropertyInfo Source # 
type AttrOrigin WebResourceMimeTypePropertyInfo Source # 
type AttrLabel WebResourceMimeTypePropertyInfo Source # 
type AttrGetType WebResourceMimeTypePropertyInfo Source # 
type AttrBaseTypeConstraint WebResourceMimeTypePropertyInfo Source # 
type AttrSetTypeConstraint WebResourceMimeTypePropertyInfo Source # 
type AttrAllowedOps WebResourceMimeTypePropertyInfo Source # 

uri

data WebResourceUriPropertyInfo Source #

Instances

AttrInfo WebResourceUriPropertyInfo Source # 
type AttrOrigin WebResourceUriPropertyInfo Source # 
type AttrLabel WebResourceUriPropertyInfo Source # 
type AttrGetType WebResourceUriPropertyInfo Source # 
type AttrBaseTypeConstraint WebResourceUriPropertyInfo Source # 
type AttrSetTypeConstraint WebResourceUriPropertyInfo Source # 
type AttrAllowedOps WebResourceUriPropertyInfo Source # 

Signals

contentLengthReceived

loadFailed

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

loadFinished

responseReceived