gi-soup-2.4.29: 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

AddressFamily

data AddressFamily Source #

The supported address families.

Constructors

AddressFamilyInvalid

an invalid SoupAddress

AddressFamilyIpv4

an IPv4 address

AddressFamilyIpv6

an IPv6 address

AnotherAddressFamily Int

Catch-all for unknown values

Instances

Instances details
Enum AddressFamily Source # 
Instance details

Defined in GI.Soup.Enums

Show AddressFamily Source # 
Instance details

Defined in GI.Soup.Enums

Eq AddressFamily Source # 
Instance details

Defined in GI.Soup.Enums

Ord AddressFamily Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum AddressFamily Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject AddressFamily Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes AddressFamily Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes AddressFamily Source # 
Instance details

Defined in GI.Soup.Enums

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

CacheResponse

data CacheResponse Source #

No description available in the introspection data.

Constructors

CacheResponseFresh

No description available in the introspection data.

CacheResponseNeedsValidation

No description available in the introspection data.

CacheResponseStale

No description available in the introspection data.

AnotherCacheResponse Int

Catch-all for unknown values

Instances

Instances details
Enum CacheResponse Source # 
Instance details

Defined in GI.Soup.Enums

Show CacheResponse Source # 
Instance details

Defined in GI.Soup.Enums

Eq CacheResponse Source # 
Instance details

Defined in GI.Soup.Enums

Ord CacheResponse Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum CacheResponse Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject CacheResponse Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes CacheResponse Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes CacheResponse Source # 
Instance details

Defined in GI.Soup.Enums

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

CacheType

data CacheType Source #

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

Since: 2.34

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]

ConnectionState

data ConnectionState Source #

No description available in the introspection data.

Constructors

ConnectionStateNew

No description available in the introspection data.

ConnectionStateConnecting

No description available in the introspection data.

ConnectionStateIdle

No description available in the introspection data.

ConnectionStateInUse

No description available in the introspection data.

ConnectionStateRemoteDisconnected

No description available in the introspection data.

ConnectionStateDisconnected

No description available in the introspection data.

AnotherConnectionState Int

Catch-all for unknown values

Instances

Instances details
Enum ConnectionState Source # 
Instance details

Defined in GI.Soup.Enums

Show ConnectionState Source # 
Instance details

Defined in GI.Soup.Enums

Eq ConnectionState Source # 
Instance details

Defined in GI.Soup.Enums

Ord ConnectionState Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum ConnectionState Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject ConnectionState Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes ConnectionState Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes ConnectionState Source # 
Instance details

Defined in GI.Soup.Enums

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

CookieJarAcceptPolicy

data CookieJarAcceptPolicy Source #

The policy for accepting or rejecting cookies returned in responses.

Since: 2.30

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 messageSetFirstParty on each outgoing Message, setting the 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 messageSetFirstParty on each outgoing Message, setting the 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. Since 2.72.

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 dateToString can use.

sOUPDATEHTTP and sOUPDATECOOKIE always coerce the time to UTC. sOUPDATEISO8601XMLRPC uses the time as given, ignoring the offset completely. sOUPDATERFC2822 and the other ISO 8601 variants use the local time, appending the offset information if available.

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

DateFormatRfc2822

RFC 2822 format, eg "Sun, 6 Nov 1994 09:49:37 -0100"

DateFormatIso8601Compact

ISO 8601 date/time with no optional punctuation. Eg, "19941106T094937-0100".

DateFormatIso8601Full

ISO 8601 date/time with all optional punctuation. Eg, "1994-11-06T09:49:37-01:00".

DateFormatIso8601

An alias for sOUPDATEISO8601FULL.

DateFormatIso8601Xmlrpc

ISO 8601 date/time as used by XML-RPC. Eg, "19941106T09:49:37".

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)

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]

KnownStatusCode

data KnownStatusCode Source #

No description available in the introspection data.

Constructors

KnownStatusCodeNone

No description available in the introspection data.

KnownStatusCodeCancelled

No description available in the introspection data.

KnownStatusCodeCantResolve

No description available in the introspection data.

KnownStatusCodeCantResolveProxy

No description available in the introspection data.

KnownStatusCodeCantConnect

No description available in the introspection data.

KnownStatusCodeCantConnectProxy

No description available in the introspection data.

KnownStatusCodeSslFailed

No description available in the introspection data.

KnownStatusCodeIoError

No description available in the introspection data.

KnownStatusCodeMalformed

No description available in the introspection data.

KnownStatusCodeTryAgain

No description available in the introspection data.

KnownStatusCodeTooManyRedirects

No description available in the introspection data.

KnownStatusCodeTlsFailed

No description available in the introspection data.

KnownStatusCodeContinue

No description available in the introspection data.

KnownStatusCodeSwitchingProtocols

No description available in the introspection data.

KnownStatusCodeProcessing

No description available in the introspection data.

KnownStatusCodeOk

No description available in the introspection data.

KnownStatusCodeCreated

No description available in the introspection data.

KnownStatusCodeAccepted

No description available in the introspection data.

KnownStatusCodeNonAuthoritative

No description available in the introspection data.

KnownStatusCodeNoContent

No description available in the introspection data.

KnownStatusCodeResetContent

No description available in the introspection data.

KnownStatusCodePartialContent

No description available in the introspection data.

KnownStatusCodeMultiStatus

No description available in the introspection data.

KnownStatusCodeMultipleChoices

No description available in the introspection data.

KnownStatusCodeMovedPermanently

No description available in the introspection data.

KnownStatusCodeFound

No description available in the introspection data.

KnownStatusCodeMovedTemporarily

No description available in the introspection data.

KnownStatusCodeSeeOther

No description available in the introspection data.

KnownStatusCodeNotModified

No description available in the introspection data.

KnownStatusCodeUseProxy

No description available in the introspection data.

KnownStatusCodeNotAppearingInThisProtocol

No description available in the introspection data.

KnownStatusCodeTemporaryRedirect

No description available in the introspection data.

KnownStatusCodeBadRequest

No description available in the introspection data.

KnownStatusCodeUnauthorized

No description available in the introspection data.

KnownStatusCodePaymentRequired

No description available in the introspection data.

KnownStatusCodeForbidden

No description available in the introspection data.

KnownStatusCodeNotFound

No description available in the introspection data.

KnownStatusCodeMethodNotAllowed

No description available in the introspection data.

KnownStatusCodeNotAcceptable

No description available in the introspection data.

KnownStatusCodeProxyAuthenticationRequired

No description available in the introspection data.

KnownStatusCodeProxyUnauthorized

No description available in the introspection data.

KnownStatusCodeRequestTimeout

No description available in the introspection data.

KnownStatusCodeConflict

No description available in the introspection data.

KnownStatusCodeGone

No description available in the introspection data.

KnownStatusCodeLengthRequired

No description available in the introspection data.

KnownStatusCodePreconditionFailed

No description available in the introspection data.

KnownStatusCodeRequestEntityTooLarge

No description available in the introspection data.

KnownStatusCodeRequestUriTooLong

No description available in the introspection data.

KnownStatusCodeUnsupportedMediaType

No description available in the introspection data.

KnownStatusCodeRequestedRangeNotSatisfiable

No description available in the introspection data.

KnownStatusCodeInvalidRange

No description available in the introspection data.

KnownStatusCodeExpectationFailed

No description available in the introspection data.

KnownStatusCodeUnprocessableEntity

No description available in the introspection data.

KnownStatusCodeLocked

No description available in the introspection data.

KnownStatusCodeFailedDependency

No description available in the introspection data.

KnownStatusCodeInternalServerError

No description available in the introspection data.

KnownStatusCodeNotImplemented

No description available in the introspection data.

KnownStatusCodeBadGateway

No description available in the introspection data.

KnownStatusCodeServiceUnavailable

No description available in the introspection data.

KnownStatusCodeGatewayTimeout

No description available in the introspection data.

KnownStatusCodeHttpVersionNotSupported

No description available in the introspection data.

KnownStatusCodeInsufficientStorage

No description available in the introspection data.

KnownStatusCodeNotExtended

No description available in the introspection data.

AnotherKnownStatusCode Int

Catch-all for unknown values

Instances

Instances details
Enum KnownStatusCode Source # 
Instance details

Defined in GI.Soup.Enums

Show KnownStatusCode Source # 
Instance details

Defined in GI.Soup.Enums

Eq KnownStatusCode Source # 
Instance details

Defined in GI.Soup.Enums

Ord KnownStatusCode Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum KnownStatusCode Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject KnownStatusCode Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes KnownStatusCode Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes KnownStatusCode Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes KnownStatusCode = '[] :: [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 #

Describes how Buffer should use the data passed in by the caller.

See also bufferNewWithOwner, which allows to you create a buffer containing data which is owned by another object.

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 for the Buffer's use; libsoup will assume ownership of it and free it (with free) when it is done with it.

MemoryUseCopy

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

MemoryUseTemporary

The passed-in data belongs to the caller, but will remain valid for the lifetime of the Buffer. The difference between this and sOUPMEMORYSTATIC is that if you copy a sOUPMEMORYTEMPORARY buffer, it will make a copy of the memory as well, rather than reusing 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 messageHeadersNew 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 Message 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]

RequestError

data RequestError Source #

A Request error.

Since: 2.42

Constructors

RequestErrorBadUri

the URI could not be parsed

RequestErrorUnsupportedUriScheme

the URI scheme is not supported by this Session

RequestErrorParsing

the server's response could not be parsed

RequestErrorEncoding

the server's response was in an unsupported format

AnotherRequestError Int

Catch-all for unknown values

Instances

Instances details
Enum RequestError Source # 
Instance details

Defined in GI.Soup.Enums

Show RequestError Source # 
Instance details

Defined in GI.Soup.Enums

Eq RequestError Source # 
Instance details

Defined in GI.Soup.Enums

Ord RequestError Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum RequestError Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject RequestError Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

GErrorClass RequestError Source # 
Instance details

Defined in GI.Soup.Enums

HasParentTypes RequestError Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes RequestError Source # 
Instance details

Defined in GI.Soup.Enums

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

catchRequestError :: IO a -> (RequestError -> GErrorMessage -> IO a) -> IO a Source #

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

handleRequestError :: (RequestError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

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

RequesterError

data RequesterError Source #

No description available in the introspection data.

Constructors

RequesterErrorBadUri

No description available in the introspection data.

RequesterErrorUnsupportedUriScheme

No description available in the introspection data.

AnotherRequesterError Int

Catch-all for unknown values

Instances

Instances details
Enum RequesterError Source # 
Instance details

Defined in GI.Soup.Enums

Show RequesterError Source # 
Instance details

Defined in GI.Soup.Enums

Eq RequesterError Source # 
Instance details

Defined in GI.Soup.Enums

Ord RequesterError Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum RequesterError Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject RequesterError Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

GErrorClass RequesterError Source # 
Instance details

Defined in GI.Soup.Enums

HasParentTypes RequesterError Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes RequesterError Source # 
Instance details

Defined in GI.Soup.Enums

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

catchRequesterError :: IO a -> (RequesterError -> GErrorMessage -> IO a) -> IO a Source #

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

handleRequesterError :: (RequesterError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

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

SameSitePolicy

data SameSitePolicy Source #

No description available in the introspection data.

Since: 2.70

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]

SocketIOStatus

data SocketIOStatus Source #

Return value from the Socket IO methods.

Constructors

SocketIOStatusOk

Success

SocketIOStatusWouldBlock

Cannot read/write any more at this time

SocketIOStatusEof

End of file

SocketIOStatusError

Other error

AnotherSocketIOStatus Int

Catch-all for unknown values

Instances

Instances details
Enum SocketIOStatus Source # 
Instance details

Defined in GI.Soup.Enums

Show SocketIOStatus Source # 
Instance details

Defined in GI.Soup.Enums

Eq SocketIOStatus Source # 
Instance details

Defined in GI.Soup.Enums

Ord SocketIOStatus Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum SocketIOStatus Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject SocketIOStatus Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes SocketIOStatus Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes SocketIOStatus Source # 
Instance details

Defined in GI.Soup.Enums

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

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.

Prior to 2.44 this type was called <literal>SoupKnownStatusCode</literal>, but the individual values have always had the names they have now.

Constructors

StatusNone

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

StatusCancelled

Message was cancelled locally

StatusCantResolve

Unable to resolve destination host name

StatusCantResolveProxy

Unable to resolve proxy host name

StatusCantConnect

Unable to connect to remote host

StatusCantConnectProxy

Unable to connect to proxy

StatusSslFailed

SSL/TLS negotiation failed

StatusIoError

A network error occurred, or the other end closed the connection unexpectedly

StatusMalformed

Malformed data (usually a programmer error)

StatusTryAgain

Used internally

StatusTooManyRedirects

There were too many redirections

StatusTlsFailed

Used internally

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

No description available in the introspection data.

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)

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.

Since: 2.40

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 tldGetBaseDomain on <literal>"co.uk"</literal>.

TLDErrorNoBaseDomain

The passed-in hostname has no recognized public suffix.

TLDErrorNoPslData

No description available in the introspection data.

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.

WebsocketCloseCode

data WebsocketCloseCode Source #

Pre-defined close codes that can be passed to websocketConnectionClose or received from websocketConnectionGetCloseCode. (However, other codes are also allowed.)

Since: 2.50

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

Since: 2.50

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 WebsocketConnection::message signal.

Since: 2.50

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.

Since: 2.50

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

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]

WebsocketState

data WebsocketState Source #

The state of the WebSocket connection.

Since: 2.50

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]

XMLRPCError

data XMLRPCError Source #

No description available in the introspection data.

Constructors

XMLRPCErrorArguments

No description available in the introspection data.

XMLRPCErrorRetval

No description available in the introspection data.

AnotherXMLRPCError Int

Catch-all for unknown values

Instances

Instances details
Enum XMLRPCError Source # 
Instance details

Defined in GI.Soup.Enums

Show XMLRPCError Source # 
Instance details

Defined in GI.Soup.Enums

Eq XMLRPCError Source # 
Instance details

Defined in GI.Soup.Enums

Ord XMLRPCError Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum XMLRPCError Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject XMLRPCError Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

GErrorClass XMLRPCError Source # 
Instance details

Defined in GI.Soup.Enums

HasParentTypes XMLRPCError Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes XMLRPCError Source # 
Instance details

Defined in GI.Soup.Enums

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

catchXMLRPCError :: IO a -> (XMLRPCError -> GErrorMessage -> IO a) -> IO a Source #

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

handleXMLRPCError :: (XMLRPCError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

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

XMLRPCFault

data XMLRPCFault Source #

Pre-defined XML-RPC fault codes from <ulink url="http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php">http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php</ulink>. These are an extension, not part of the XML-RPC spec; you can't assume servers will use them.

Constructors

XMLRPCFaultParseErrorNotWellFormed

request was not well-formed

XMLRPCFaultParseErrorUnsupportedEncoding

request was in an unsupported encoding

XMLRPCFaultParseErrorInvalidCharacterForEncoding

request contained an invalid character

XMLRPCFaultServerErrorInvalidXmlRpc

request was not valid XML-RPC

XMLRPCFaultServerErrorRequestedMethodNotFound

method not found

XMLRPCFaultServerErrorInvalidMethodParameters

invalid parameters

XMLRPCFaultServerErrorInternalXmlRpcError

internal error

XMLRPCFaultApplicationError

start of reserved range for application error codes

XMLRPCFaultSystemError

start of reserved range for system error codes

XMLRPCFaultTransportError

start of reserved range for transport error codes

AnotherXMLRPCFault Int

Catch-all for unknown values

Instances

Instances details
Enum XMLRPCFault Source # 
Instance details

Defined in GI.Soup.Enums

Show XMLRPCFault Source # 
Instance details

Defined in GI.Soup.Enums

Eq XMLRPCFault Source # 
Instance details

Defined in GI.Soup.Enums

Ord XMLRPCFault Source # 
Instance details

Defined in GI.Soup.Enums

BoxedEnum XMLRPCFault Source # 
Instance details

Defined in GI.Soup.Enums

TypedObject XMLRPCFault Source # 
Instance details

Defined in GI.Soup.Enums

Methods

glibType :: IO GType

HasParentTypes XMLRPCFault Source # 
Instance details

Defined in GI.Soup.Enums

type ParentTypes XMLRPCFault Source # 
Instance details

Defined in GI.Soup.Enums

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