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.NetworkResponse

Contents

Description

This class represents the network related aspects of a navigation response.

Synopsis

Exported types

Methods

getMessage

networkResponseGetMessage Source #

Arguments

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

response: a NetworkResponse

-> m Message

Returns: the Message

Obtains the Message that represents the given response. Notice that only the response side of the HTTP conversation is represented.

Since: 1.1.14

getSuggestedFilename

networkResponseGetSuggestedFilename Source #

Arguments

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

response: a NetworkResponse

-> m Text

Returns: the suggested filename or Nothing if not present

Obtains the suggested filename for the given network response. The suggested filename is taken from the 'Content-Disposition' HTTP header, but this is not always present, and this method will return Nothing in such case.

Since: 1.10

getUri

networkResponseGetUri Source #

Arguments

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

response: a NetworkResponse

-> m Text

Returns: the URI of the NetworkResponse

No description available in the introspection data.

Since: 1.1.14

new

networkResponseNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

uri: an URI

-> m NetworkResponse

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

Creates a new NetworkResponse initialized with an URI.

Since: 1.1.14

setUri

networkResponseSetUri Source #

Arguments

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

response: a NetworkResponse

-> Text

uri: an URI

-> m () 

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

Since: 1.1.14

Properties

message

data NetworkResponseMessagePropertyInfo Source #

Instances

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

suggestedFilename

data NetworkResponseSuggestedFilenamePropertyInfo Source #

Instances

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

uri

data NetworkResponseUriPropertyInfo Source #

Instances

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