gi-webkit2-4.0.14: WebKit2 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.WebKit2.Objects.URIResponse

Contents

Description

 

Synopsis

Exported types

Methods

getContentLength

uRIResponseGetContentLength Source #

Arguments

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

response: a URIResponse

-> m Word64

Returns: the expected content length of response.

Get the expected content length of the URIResponse. It can be 0 if the server provided an incorrect or missing Content-Length.

getHttpHeaders

uRIResponseGetHttpHeaders Source #

Arguments

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

response: a URIResponse

-> m MessageHeaders

Returns: a MessageHeaders with the HTTP headers of response or Nothing if response is not an HTTP response.

Get the HTTP headers of a URIResponse as a MessageHeaders.

Since: 2.6

getMimeType

uRIResponseGetMimeType Source #

Arguments

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

response: a URIResponse

-> m Text

Returns: the MIME type of the URIResponse

No description available in the introspection data.

getStatusCode

uRIResponseGetStatusCode Source #

Arguments

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

response: a URIResponse

-> m Word32

Returns: the status code of response

Get the status code of the URIResponse as returned by the server. It will normally be a KnownStatusCode, for example StatusOk, though the server can respond with any unsigned integer.

getSuggestedFilename

uRIResponseGetSuggestedFilename Source #

Arguments

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

response: a URIResponse

-> m Text

Returns: the suggested filename or Nothing if the 'Content-Disposition' HTTP header is not present.

Get the suggested filename for response, as specified by the 'Content-Disposition' HTTP header, or Nothing if it's not present.

getUri

uRIResponseGetUri Source #

Arguments

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

response: a URIResponse

-> m Text

Returns: the uri of the URIResponse

No description available in the introspection data.

Properties

contentLength

httpHeaders

mimeType

statusCode

suggestedFilename

uri