gi-webkit-3.0.11: 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.NetworkRequest

Contents

Description

This class represents the network related aspects of a navigation request. It is used whenever WebKit wants to provide information about a request that will be sent, or has been sent. Inside it you can find the URI of the request, and, for valid URIs, a Message object, which provides access to further information such as headers.

Synopsis

Exported types

Methods

getMessage

networkRequestGetMessage Source #

Arguments

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

request: a NetworkRequest

-> m Message

Returns: the Message

Obtains the Message held and used by the given request. Notice that modification of the SoupMessage of a request by signal handlers is only supported (as in, will only affect what is actually sent to the server) where explicitly documented.

Since: 1.1.9

getUri

networkRequestGetUri Source #

Arguments

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

request: a NetworkRequest

-> m Text

Returns: the URI of the NetworkRequest

No description available in the introspection data.

Since: 1.0.0

new

networkRequestNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

uri: an URI

-> m NetworkRequest

Returns: a new NetworkRequest, or Nothing if the URI is invalid.

Creates a new NetworkRequest initialized with an URI.

setUri

networkRequestSetUri Source #

Arguments

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

request: a NetworkRequest

-> Text

uri: an URI

-> m () 

Sets the URI held and used by the given request. When the request has an associated Message, its URI will also be set by this call.

Properties

message

data NetworkRequestMessagePropertyInfo Source #

Instances

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

uri

data NetworkRequestUriPropertyInfo Source #

Instances

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