gi-soup-3.0.2: Libsoup bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Soup.Enums

Description

 
Synopsis

Enumerations

CacheType

data CacheType Source #

The type of cache; this affects what kinds of responses will be saved.

Constructors

CacheTypeSingleUser

a single-user cache

CacheTypeShared

a shared cache

AnotherCacheType Int

Catch-all for unknown values

Instances

Instances details
Enum CacheType Source # 
Instance details

Defined in GI.Soup.Enums

Show CacheType Source # 
Instance details

Defined in GI.Soup.Enums

Eq CacheType Source # 
Instance details

Defined in GI.Soup.Enums

Ord CacheType Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum CacheType Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject CacheType Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes CacheType Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes CacheType Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes CacheType = '[] :: [Type]

CookieJarAcceptPolicy

data CookieJarAcceptPolicy Source #

The policy for accepting or rejecting cookies returned in responses.

Constructors

CookieJarAcceptPolicyAlways

accept all cookies unconditionally.

CookieJarAcceptPolicyNever

reject all cookies unconditionally.

CookieJarAcceptPolicyNoThirdParty

accept all cookies set by the main document loaded in the application using libsoup. An example of the most common case, web browsers, would be: If http://www.example.com is the page loaded, accept all cookies set by example.com, but if a resource from http://www.third-party.com is loaded from that page reject any cookie that it could try to set. For libsoup to be able to tell apart first party cookies from the rest, the application must call [methodmessage.set_first_party] on each outgoing [classmessage], setting the [structgLib.Uri] of the main document. If no first party is set in a message when this policy is in effect, cookies will be assumed to be third party by default.

CookieJarAcceptPolicyGrandfatheredThirdParty

accept all cookies set by the main document loaded in the application using libsoup, and from domains that have previously set at least one cookie when loaded as the main document. An example of the most common case, web browsers, would be: if http://www.example.com is the page loaded, accept all cookies set by example.com, but if a resource from http://www.third-party.com is loaded from that page, reject any cookie that it could try to set unless it already has a cookie in the cookie jar. For libsoup to be able to tell apart first party cookies from the rest, the application must call [methodmessage.set_first_party] on each outgoing Message, setting the [structgLib.Uri] of the main document. If no first party is set in a message when this policy is in effect, cookies will be assumed to be third party by default.

AnotherCookieJarAcceptPolicy Int

Catch-all for unknown values

Instances

Instances details
Enum CookieJarAcceptPolicy Source # 
Instance details

Defined in GI.Soup.Enums

Show CookieJarAcceptPolicy Source # 
Instance details

Defined in GI.Soup.Enums

Eq CookieJarAcceptPolicy Source # 
Instance details

Defined in GI.Soup.Enums

Ord CookieJarAcceptPolicy Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum CookieJarAcceptPolicy Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject CookieJarAcceptPolicy Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes CookieJarAcceptPolicy Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes CookieJarAcceptPolicy Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes CookieJarAcceptPolicy = '[] :: [Type]

DateFormat

data DateFormat Source #

Date formats that [funcdateTimeToString] can use.

sOUPDATEHTTP and sOUPDATECOOKIE always coerce the time to UTC.

This enum may be extended with more values in future releases.

Constructors

DateFormatHttp

RFC 1123 format, used by the HTTP "Date" header. Eg "Sun, 06 Nov 1994 08:49:37 GMT".

DateFormatCookie

The format for the "Expires" timestamp in the Netscape cookie specification. Eg, "Sun, 06-Nov-1994 08:49:37 GMT".

AnotherDateFormat Int

Catch-all for unknown values

Instances

Instances details
Enum DateFormat Source # 
Instance details

Defined in GI.Soup.Enums

Show DateFormat Source # 
Instance details

Defined in GI.Soup.Enums

Eq DateFormat Source # 
Instance details

Defined in GI.Soup.Enums

Ord DateFormat Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum DateFormat Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject DateFormat Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes DateFormat Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes DateFormat Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes DateFormat = '[] :: [Type]

Encoding

data Encoding Source #

How a message body is encoded for transport

Constructors

EncodingUnrecognized

unknown / error

EncodingNone

no body is present (which is not the same as a 0-length body, and only occurs in certain places)

EncodingContentLength

Content-Length encoding

EncodingEof

Response body ends when the connection is closed

EncodingChunked

chunked encoding (currently only supported for response)

EncodingByteranges

multipart/byteranges (Reserved for future use: NOT CURRENTLY IMPLEMENTED)

AnotherEncoding Int

Catch-all for unknown values

Instances

Instances details
Enum Encoding Source # 
Instance details

Defined in GI.Soup.Enums

Show Encoding Source # 
Instance details

Defined in GI.Soup.Enums

Eq Encoding Source # 
Instance details

Defined in GI.Soup.Enums

Ord Encoding Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum Encoding Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject Encoding Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes Encoding Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes Encoding Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes Encoding = '[] :: [Type]

HTTPVersion

data HTTPVersion Source #

Indicates the HTTP protocol version being used.

Constructors

HTTPVersionHttp10

HTTP 1.0 (RFC 1945)

HTTPVersionHttp11

HTTP 1.1 (RFC 2616)

HTTPVersionHttp20

HTTP 2.0 (RFC 7540)

AnotherHTTPVersion Int

Catch-all for unknown values

Instances

Instances details
Enum HTTPVersion Source # 
Instance details

Defined in GI.Soup.Enums

Show HTTPVersion Source # 
Instance details

Defined in GI.Soup.Enums

Eq HTTPVersion Source # 
Instance details

Defined in GI.Soup.Enums

Ord HTTPVersion Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum HTTPVersion Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject HTTPVersion Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes HTTPVersion Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes HTTPVersion Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes HTTPVersion = '[] :: [Type]

LoggerLogLevel

data LoggerLogLevel Source #

Describes the level of logging output to provide.

Constructors

LoggerLogLevelNone

No logging

LoggerLogLevelMinimal

Log the Request-Line or Status-Line and the Soup-Debug pseudo-headers

LoggerLogLevelHeaders

Log the full request/response headers

LoggerLogLevelBody

Log the full headers and request/response bodies

AnotherLoggerLogLevel Int

Catch-all for unknown values

Instances

Instances details
Enum LoggerLogLevel Source # 
Instance details

Defined in GI.Soup.Enums

Show LoggerLogLevel Source # 
Instance details

Defined in GI.Soup.Enums

Eq LoggerLogLevel Source # 
Instance details

Defined in GI.Soup.Enums

Ord LoggerLogLevel Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum LoggerLogLevel Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject LoggerLogLevel Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes LoggerLogLevel Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes LoggerLogLevel Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes LoggerLogLevel = '[] :: [Type]

MemoryUse

data MemoryUse Source #

The lifetime of the memory being passed.

Constructors

MemoryUseStatic

The memory is statically allocated and constant; libsoup can use the passed-in buffer directly and not need to worry about it being modified or freed.

MemoryUseTake

The caller has allocated the memory and libsoup will assume ownership of it and free it with free.

MemoryUseCopy

The passed-in data belongs to the caller and libsoup will copy it into new memory leaving the caller free to reuse the original memory.

AnotherMemoryUse Int

Catch-all for unknown values

Instances

Instances details
Enum MemoryUse Source # 
Instance details

Defined in GI.Soup.Enums

Show MemoryUse Source # 
Instance details

Defined in GI.Soup.Enums

Eq MemoryUse Source # 
Instance details

Defined in GI.Soup.Enums

Ord MemoryUse Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum MemoryUse Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject MemoryUse Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes MemoryUse Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes MemoryUse Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes MemoryUse = '[] :: [Type]

MessageHeadersType

data MessageHeadersType Source #

Value passed to [ctormessageHeaders.new] to set certain default behaviors.

Constructors

MessageHeadersTypeRequest

request headers

MessageHeadersTypeResponse

response headers

MessageHeadersTypeMultipart

multipart body part headers

AnotherMessageHeadersType Int

Catch-all for unknown values

Instances

Instances details
Enum MessageHeadersType Source # 
Instance details

Defined in GI.Soup.Enums

Show MessageHeadersType Source # 
Instance details

Defined in GI.Soup.Enums

Eq MessageHeadersType Source # 
Instance details

Defined in GI.Soup.Enums

Ord MessageHeadersType Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum MessageHeadersType Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject MessageHeadersType Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes MessageHeadersType Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes MessageHeadersType Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes MessageHeadersType = '[] :: [Type]

MessagePriority

data MessagePriority Source #

Priorities that can be set on a [classmessage] to instruct the message queue to process it before any other message with lower priority.

Constructors

MessagePriorityVeryLow

The lowest priority, the messages with this priority will be the last ones to be attended.

MessagePriorityLow

Use this for low priority messages, a Message with the default priority will be processed first.

MessagePriorityNormal

The default priotity, this is the priority assigned to the Message by default.

MessagePriorityHigh

High priority, a Message with this priority will be processed before the ones with the default priority.

MessagePriorityVeryHigh

The highest priority, use this for very urgent Message as they will be the first ones to be attended.

AnotherMessagePriority Int

Catch-all for unknown values

Instances

Instances details
Enum MessagePriority Source # 
Instance details

Defined in GI.Soup.Enums

Show MessagePriority Source # 
Instance details

Defined in GI.Soup.Enums

Eq MessagePriority Source # 
Instance details

Defined in GI.Soup.Enums

Ord MessagePriority Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum MessagePriority Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject MessagePriority Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes MessagePriority Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes MessagePriority Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes MessagePriority = '[] :: [Type]

SameSitePolicy

data SameSitePolicy Source #

Represents the same-site policies of a cookie.

Constructors

SameSitePolicyNone

The cookie is exposed with both cross-site and same-site requests

SameSitePolicyLax

The cookie is withheld on cross-site requests but exposed on cross-site navigations

SameSitePolicyStrict

The cookie is only exposed for same-site requests

AnotherSameSitePolicy Int

Catch-all for unknown values

Instances

Instances details
Enum SameSitePolicy Source # 
Instance details

Defined in GI.Soup.Enums

Show SameSitePolicy Source # 
Instance details

Defined in GI.Soup.Enums

Eq SameSitePolicy Source # 
Instance details

Defined in GI.Soup.Enums

Ord SameSitePolicy Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum SameSitePolicy Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject SameSitePolicy Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes SameSitePolicy Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes SameSitePolicy Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes SameSitePolicy = '[] :: [Type]

SessionError

data SessionError Source #

A Session error.

Constructors

SessionErrorParsing

the server's response could not be parsed

SessionErrorEncoding

the server's response was in an unsupported format

SessionErrorTooManyRedirects

the message has been redirected too many times

SessionErrorTooManyRestarts

the message has been restarted too many times

SessionErrorRedirectNoLocation

failed to redirect message because Location header was missing or empty in response

SessionErrorRedirectBadUri

failed to redirect message because Location header contains an invalid URI

SessionErrorMessageAlreadyInQueue

the message is already in the session queue. Messages can only be reused after unqueued.

AnotherSessionError Int

Catch-all for unknown values

Instances

Instances details
Enum SessionError Source # 
Instance details

Defined in GI.Soup.Enums

Show SessionError Source # 
Instance details

Defined in GI.Soup.Enums

Eq SessionError Source # 
Instance details

Defined in GI.Soup.Enums

Ord SessionError Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum SessionError Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject SessionError Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

GErrorClass SessionError Source # 
Instance details

Defined in GI.Soup.Enums

HasParentTypes SessionError Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes SessionError Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes SessionError = '[] :: [Type]

catchSessionError :: IO a -> (SessionError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type SessionError. This is a specialized version of catchGErrorJustDomain.

handleSessionError :: (SessionError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type SessionError. This is a specialized version of handleGErrorJustDomain.

Status

data Status Source #

These represent the known HTTP status code values, plus various network and internal errors.

Note that no libsoup functions take or return this type directly; any function that works with status codes will accept unrecognized status codes as well.

Constructors

StatusNone

No status available. (Eg, the message has not been sent yet)

StatusContinue

100 Continue (HTTP)

StatusSwitchingProtocols

101 Switching Protocols (HTTP)

StatusProcessing

102 Processing (WebDAV)

StatusOk

200 Success (HTTP). Also used by many lower-level soup routines to indicate success.

StatusCreated

201 Created (HTTP)

StatusAccepted

202 Accepted (HTTP)

StatusNonAuthoritative

203 Non-Authoritative Information (HTTP)

StatusNoContent

204 No Content (HTTP)

StatusResetContent

205 Reset Content (HTTP)

StatusPartialContent

206 Partial Content (HTTP)

StatusMultiStatus

207 Multi-Status (WebDAV)

StatusMultipleChoices

300 Multiple Choices (HTTP)

StatusMovedPermanently

301 Moved Permanently (HTTP)

StatusFound

302 Found (HTTP)

StatusMovedTemporarily

302 Moved Temporarily (old name, RFC 2068)

StatusSeeOther

303 See Other (HTTP)

StatusNotModified

304 Not Modified (HTTP)

StatusUseProxy

305 Use Proxy (HTTP)

StatusNotAppearingInThisProtocol

306 Unused

StatusTemporaryRedirect

307 Temporary Redirect (HTTP)

StatusPermanentRedirect

308 Permanent Redirect (HTTP)

StatusBadRequest

400 Bad Request (HTTP)

StatusUnauthorized

401 Unauthorized (HTTP)

StatusPaymentRequired

402 Payment Required (HTTP)

StatusForbidden

403 Forbidden (HTTP)

StatusNotFound

404 Not Found (HTTP)

StatusMethodNotAllowed

405 Method Not Allowed (HTTP)

StatusNotAcceptable

406 Not Acceptable (HTTP)

StatusProxyAuthenticationRequired

407 Proxy Authentication Required (HTTP)

StatusProxyUnauthorized

shorter alias for StatusProxyAuthenticationRequired

StatusRequestTimeout

408 Request Timeout (HTTP)

StatusConflict

409 Conflict (HTTP)

StatusGone

410 Gone (HTTP)

StatusLengthRequired

411 Length Required (HTTP)

StatusPreconditionFailed

412 Precondition Failed (HTTP)

StatusRequestEntityTooLarge

413 Request Entity Too Large (HTTP)

StatusRequestUriTooLong

414 Request-URI Too Long (HTTP)

StatusUnsupportedMediaType

415 Unsupported Media Type (HTTP)

StatusRequestedRangeNotSatisfiable

416 Requested Range Not Satisfiable (HTTP)

StatusInvalidRange

shorter alias for StatusRequestedRangeNotSatisfiable

StatusExpectationFailed

417 Expectation Failed (HTTP)

StatusMisdirectedRequest

421 Misdirected Request

StatusUnprocessableEntity

422 Unprocessable Entity (WebDAV)

StatusLocked

423 Locked (WebDAV)

StatusFailedDependency

424 Failed Dependency (WebDAV)

StatusInternalServerError

500 Internal Server Error (HTTP)

StatusNotImplemented

501 Not Implemented (HTTP)

StatusBadGateway

502 Bad Gateway (HTTP)

StatusServiceUnavailable

503 Service Unavailable (HTTP)

StatusGatewayTimeout

504 Gateway Timeout (HTTP)

StatusHttpVersionNotSupported

505 HTTP Version Not Supported (HTTP)

StatusInsufficientStorage

507 Insufficient Storage (WebDAV)

StatusNotExtended

510 Not Extended (RFC 2774)

AnotherStatus Int

Catch-all for unknown values

Instances

Instances details
Enum Status Source # 
Instance details

Defined in GI.Soup.Enums

Show Status Source # 
Instance details

Defined in GI.Soup.Enums

Eq Status Source # 
Instance details

Defined in GI.Soup.Enums

Methods

(==) :: Status -> Status -> Bool #

(/=) :: Status -> Status -> Bool #

Ord Status Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum Status Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject Status Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes Status Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes Status Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes Status = '[] :: [Type]

TLDError

data TLDError Source #

Error codes for SOUP_TLD_ERROR.

Constructors

TLDErrorInvalidHostname

A hostname was syntactically invalid.

TLDErrorIsIpAddress

The passed-in "hostname" was actually an IP address (and thus has no base domain or public suffix).

TLDErrorNotEnoughDomains

The passed-in hostname did not have enough components. Eg, calling [functldGetBaseDomain] on <literal>"co.uk"</literal>.

TLDErrorNoBaseDomain

The passed-in hostname has no recognized public suffix.

TLDErrorNoPslData

The Public Suffix List was not available.

AnotherTLDError Int

Catch-all for unknown values

Instances

Instances details
Enum TLDError Source # 
Instance details

Defined in GI.Soup.Enums

Show TLDError Source # 
Instance details

Defined in GI.Soup.Enums

Eq TLDError Source # 
Instance details

Defined in GI.Soup.Enums

Ord TLDError Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum TLDError Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject TLDError Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

GErrorClass TLDError Source # 
Instance details

Defined in GI.Soup.Enums

HasParentTypes TLDError Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes TLDError Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes TLDError = '[] :: [Type]

catchTLDError :: IO a -> (TLDError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type TLDError. This is a specialized version of catchGErrorJustDomain.

handleTLDError :: (TLDError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type TLDError. This is a specialized version of handleGErrorJustDomain.

URIComponent

data URIComponent Source #

Enum values passed to [funcuriCopy] to indicate the components of the URI that should be updated with the given values.

Constructors

URIComponentNone

no component

URIComponentScheme

the URI scheme component

URIComponentUser

the URI user component

URIComponentPassword

the URI password component

URIComponentAuthParams

the URI authentication parameters component

URIComponentHost

the URI host component

URIComponentPort

the URI port component

URIComponentPath

the URI path component

URIComponentQuery

the URI query component

URIComponentFragment

the URI fragment component

AnotherURIComponent Int

Catch-all for unknown values

Instances

Instances details
Enum URIComponent Source # 
Instance details

Defined in GI.Soup.Enums

Show URIComponent Source # 
Instance details

Defined in GI.Soup.Enums

Eq URIComponent Source # 
Instance details

Defined in GI.Soup.Enums

Ord URIComponent Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum URIComponent Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject URIComponent Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes URIComponent Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes URIComponent Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes URIComponent = '[] :: [Type]

WebsocketCloseCode

data WebsocketCloseCode Source #

Pre-defined close codes that can be passed to [methodwebsocketConnection.close] or received from [methodwebsocketConnection.get_close_code].

However, other codes are also allowed.

Constructors

WebsocketCloseCodeNormal

a normal, non-error close

WebsocketCloseCodeGoingAway

the client/server is going away

WebsocketCloseCodeProtocolError

a protocol error occurred

WebsocketCloseCodeUnsupportedData

the endpoint received data of a type that it does not support.

WebsocketCloseCodeNoStatus

reserved value indicating that no close code was present; must not be sent.

WebsocketCloseCodeAbnormal

reserved value indicating that the connection was closed abnormally; must not be sent.

WebsocketCloseCodeBadData

the endpoint received data that was invalid (eg, non-UTF-8 data in a text message).

WebsocketCloseCodePolicyViolation

generic error code indicating some sort of policy violation.

WebsocketCloseCodeTooBig

the endpoint received a message that is too big to process.

WebsocketCloseCodeNoExtension

the client is closing the connection because the server failed to negotiate a required extension.

WebsocketCloseCodeServerError

the server is closing the connection because it was unable to fulfill the request.

WebsocketCloseCodeTlsHandshake

reserved value indicating that the TLS handshake failed; must not be sent.

AnotherWebsocketCloseCode Int

Catch-all for unknown values

Instances

Instances details
Enum WebsocketCloseCode Source # 
Instance details

Defined in GI.Soup.Enums

Show WebsocketCloseCode Source # 
Instance details

Defined in GI.Soup.Enums

Eq WebsocketCloseCode Source # 
Instance details

Defined in GI.Soup.Enums

Ord WebsocketCloseCode Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum WebsocketCloseCode Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject WebsocketCloseCode Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes WebsocketCloseCode Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes WebsocketCloseCode Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes WebsocketCloseCode = '[] :: [Type]

WebsocketConnectionType

data WebsocketConnectionType Source #

The type of a [classwebsocketConnection].

Constructors

WebsocketConnectionTypeUnknown

unknown/invalid connection

WebsocketConnectionTypeClient

a client-side connection

WebsocketConnectionTypeServer

a server-side connection

AnotherWebsocketConnectionType Int

Catch-all for unknown values

Instances

Instances details
Enum WebsocketConnectionType Source # 
Instance details

Defined in GI.Soup.Enums

Show WebsocketConnectionType Source # 
Instance details

Defined in GI.Soup.Enums

Eq WebsocketConnectionType Source # 
Instance details

Defined in GI.Soup.Enums

Ord WebsocketConnectionType Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum WebsocketConnectionType Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject WebsocketConnectionType Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes WebsocketConnectionType Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes WebsocketConnectionType Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes WebsocketConnectionType = '[] :: [Type]

WebsocketDataType

data WebsocketDataType Source #

The type of data contained in a signalwebsocketConnection[message] signal.

Constructors

WebsocketDataTypeText

UTF-8 text

WebsocketDataTypeBinary

binary data

AnotherWebsocketDataType Int

Catch-all for unknown values

Instances

Instances details
Enum WebsocketDataType Source # 
Instance details

Defined in GI.Soup.Enums

Show WebsocketDataType Source # 
Instance details

Defined in GI.Soup.Enums

Eq WebsocketDataType Source # 
Instance details

Defined in GI.Soup.Enums

Ord WebsocketDataType Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum WebsocketDataType Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject WebsocketDataType Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes WebsocketDataType Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes WebsocketDataType Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes WebsocketDataType = '[] :: [Type]

WebsocketError

data WebsocketError Source #

WebSocket-related errors.

Constructors

WebsocketErrorFailed

a generic error

WebsocketErrorNotWebsocket

attempted to handshake with a server that does not appear to understand WebSockets.

WebsocketErrorBadHandshake

the WebSocket handshake failed because some detail was invalid (eg, incorrect accept key).

WebsocketErrorBadOrigin

the WebSocket handshake failed because the "Origin" header was not an allowed value.

AnotherWebsocketError Int

Catch-all for unknown values

Instances

Instances details
Enum WebsocketError Source # 
Instance details

Defined in GI.Soup.Enums

Show WebsocketError Source # 
Instance details

Defined in GI.Soup.Enums

Eq WebsocketError Source # 
Instance details

Defined in GI.Soup.Enums

Ord WebsocketError Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum WebsocketError Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject WebsocketError Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

GErrorClass WebsocketError Source # 
Instance details

Defined in GI.Soup.Enums

HasParentTypes WebsocketError Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes WebsocketError Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes WebsocketError = '[] :: [Type]

catchWebsocketError :: IO a -> (WebsocketError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type WebsocketError. This is a specialized version of catchGErrorJustDomain.

handleWebsocketError :: (WebsocketError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type WebsocketError. This is a specialized version of handleGErrorJustDomain.

WebsocketState

data WebsocketState Source #

The state of the WebSocket connection.

Constructors

WebsocketStateOpen

the connection is ready to send messages

WebsocketStateClosing

the connection is in the process of closing down; messages may be received, but not sent

WebsocketStateClosed

the connection is completely closed down

AnotherWebsocketState Int

Catch-all for unknown values

Instances

Instances details
Enum WebsocketState Source # 
Instance details

Defined in GI.Soup.Enums

Show WebsocketState Source # 
Instance details

Defined in GI.Soup.Enums

Eq WebsocketState Source # 
Instance details

Defined in GI.Soup.Enums

Ord WebsocketState Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum WebsocketState Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject WebsocketState Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes WebsocketState Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes WebsocketState Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes WebsocketState = '[] :: [Type]