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

suggestedFilename

uri