Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- Enumerations
- AddressFamily
- CacheResponse
- CacheType
- ConnectionState
- CookieJarAcceptPolicy
- DateFormat
- Encoding
- HTTPVersion
- KnownStatusCode
- LoggerLogLevel
- MemoryUse
- MessageHeadersType
- MessagePriority
- RequestError
- RequesterError
- SameSitePolicy
- SocketIOStatus
- Status
- TLDError
- WebsocketCloseCode
- WebsocketConnectionType
- WebsocketDataType
- WebsocketError
- WebsocketState
- XMLRPCError
- XMLRPCFault
Synopsis
- data AddressFamily
- data CacheResponse
- data CacheType
- data ConnectionState
- data CookieJarAcceptPolicy
- data DateFormat
- data Encoding
- data HTTPVersion
- data KnownStatusCode
- = KnownStatusCodeNone
- | KnownStatusCodeCancelled
- | KnownStatusCodeCantResolve
- | KnownStatusCodeCantResolveProxy
- | KnownStatusCodeCantConnect
- | KnownStatusCodeCantConnectProxy
- | KnownStatusCodeSslFailed
- | KnownStatusCodeIoError
- | KnownStatusCodeMalformed
- | KnownStatusCodeTryAgain
- | KnownStatusCodeTooManyRedirects
- | KnownStatusCodeTlsFailed
- | KnownStatusCodeContinue
- | KnownStatusCodeSwitchingProtocols
- | KnownStatusCodeProcessing
- | KnownStatusCodeOk
- | KnownStatusCodeCreated
- | KnownStatusCodeAccepted
- | KnownStatusCodeNonAuthoritative
- | KnownStatusCodeNoContent
- | KnownStatusCodeResetContent
- | KnownStatusCodePartialContent
- | KnownStatusCodeMultiStatus
- | KnownStatusCodeMultipleChoices
- | KnownStatusCodeMovedPermanently
- | KnownStatusCodeFound
- | KnownStatusCodeMovedTemporarily
- | KnownStatusCodeSeeOther
- | KnownStatusCodeNotModified
- | KnownStatusCodeUseProxy
- | KnownStatusCodeNotAppearingInThisProtocol
- | KnownStatusCodeTemporaryRedirect
- | KnownStatusCodeBadRequest
- | KnownStatusCodeUnauthorized
- | KnownStatusCodePaymentRequired
- | KnownStatusCodeForbidden
- | KnownStatusCodeNotFound
- | KnownStatusCodeMethodNotAllowed
- | KnownStatusCodeNotAcceptable
- | KnownStatusCodeProxyAuthenticationRequired
- | KnownStatusCodeProxyUnauthorized
- | KnownStatusCodeRequestTimeout
- | KnownStatusCodeConflict
- | KnownStatusCodeGone
- | KnownStatusCodeLengthRequired
- | KnownStatusCodePreconditionFailed
- | KnownStatusCodeRequestEntityTooLarge
- | KnownStatusCodeRequestUriTooLong
- | KnownStatusCodeUnsupportedMediaType
- | KnownStatusCodeRequestedRangeNotSatisfiable
- | KnownStatusCodeInvalidRange
- | KnownStatusCodeExpectationFailed
- | KnownStatusCodeUnprocessableEntity
- | KnownStatusCodeLocked
- | KnownStatusCodeFailedDependency
- | KnownStatusCodeInternalServerError
- | KnownStatusCodeNotImplemented
- | KnownStatusCodeBadGateway
- | KnownStatusCodeServiceUnavailable
- | KnownStatusCodeGatewayTimeout
- | KnownStatusCodeHttpVersionNotSupported
- | KnownStatusCodeInsufficientStorage
- | KnownStatusCodeNotExtended
- | AnotherKnownStatusCode Int
- data LoggerLogLevel
- data MemoryUse
- data MessageHeadersType
- data MessagePriority
- data RequestError
- catchRequestError :: IO a -> (RequestError -> GErrorMessage -> IO a) -> IO a
- handleRequestError :: (RequestError -> GErrorMessage -> IO a) -> IO a -> IO a
- data RequesterError
- catchRequesterError :: IO a -> (RequesterError -> GErrorMessage -> IO a) -> IO a
- handleRequesterError :: (RequesterError -> GErrorMessage -> IO a) -> IO a -> IO a
- data SameSitePolicy
- data SocketIOStatus
- data Status
- = StatusNone
- | StatusCancelled
- | StatusCantResolve
- | StatusCantResolveProxy
- | StatusCantConnect
- | StatusCantConnectProxy
- | StatusSslFailed
- | StatusIoError
- | StatusMalformed
- | StatusTryAgain
- | StatusTooManyRedirects
- | StatusTlsFailed
- | StatusContinue
- | StatusSwitchingProtocols
- | StatusProcessing
- | StatusOk
- | StatusCreated
- | StatusAccepted
- | StatusNonAuthoritative
- | StatusNoContent
- | StatusResetContent
- | StatusPartialContent
- | StatusMultiStatus
- | StatusMultipleChoices
- | StatusMovedPermanently
- | StatusFound
- | StatusMovedTemporarily
- | StatusSeeOther
- | StatusNotModified
- | StatusUseProxy
- | StatusNotAppearingInThisProtocol
- | StatusTemporaryRedirect
- | StatusPermanentRedirect
- | StatusBadRequest
- | StatusUnauthorized
- | StatusPaymentRequired
- | StatusForbidden
- | StatusNotFound
- | StatusMethodNotAllowed
- | StatusNotAcceptable
- | StatusProxyAuthenticationRequired
- | StatusProxyUnauthorized
- | StatusRequestTimeout
- | StatusConflict
- | StatusGone
- | StatusLengthRequired
- | StatusPreconditionFailed
- | StatusRequestEntityTooLarge
- | StatusRequestUriTooLong
- | StatusUnsupportedMediaType
- | StatusRequestedRangeNotSatisfiable
- | StatusInvalidRange
- | StatusExpectationFailed
- | StatusUnprocessableEntity
- | StatusLocked
- | StatusFailedDependency
- | StatusInternalServerError
- | StatusNotImplemented
- | StatusBadGateway
- | StatusServiceUnavailable
- | StatusGatewayTimeout
- | StatusHttpVersionNotSupported
- | StatusInsufficientStorage
- | StatusNotExtended
- | AnotherStatus Int
- data TLDError
- catchTLDError :: IO a -> (TLDError -> GErrorMessage -> IO a) -> IO a
- handleTLDError :: (TLDError -> GErrorMessage -> IO a) -> IO a -> IO a
- data WebsocketCloseCode
- = WebsocketCloseCodeNormal
- | WebsocketCloseCodeGoingAway
- | WebsocketCloseCodeProtocolError
- | WebsocketCloseCodeUnsupportedData
- | WebsocketCloseCodeNoStatus
- | WebsocketCloseCodeAbnormal
- | WebsocketCloseCodeBadData
- | WebsocketCloseCodePolicyViolation
- | WebsocketCloseCodeTooBig
- | WebsocketCloseCodeNoExtension
- | WebsocketCloseCodeServerError
- | WebsocketCloseCodeTlsHandshake
- | AnotherWebsocketCloseCode Int
- data WebsocketConnectionType
- data WebsocketDataType
- data WebsocketError
- data WebsocketState
- data XMLRPCError
- catchXMLRPCError :: IO a -> (XMLRPCError -> GErrorMessage -> IO a) -> IO a
- handleXMLRPCError :: (XMLRPCError -> GErrorMessage -> IO a) -> IO a -> IO a
- data XMLRPCFault
- = XMLRPCFaultParseErrorNotWellFormed
- | XMLRPCFaultParseErrorUnsupportedEncoding
- | XMLRPCFaultParseErrorInvalidCharacterForEncoding
- | XMLRPCFaultServerErrorInvalidXmlRpc
- | XMLRPCFaultServerErrorRequestedMethodNotFound
- | XMLRPCFaultServerErrorInvalidMethodParameters
- | XMLRPCFaultServerErrorInternalXmlRpcError
- | XMLRPCFaultApplicationError
- | XMLRPCFaultSystemError
- | XMLRPCFaultTransportError
- | AnotherXMLRPCFault Int
Enumerations
AddressFamily
data AddressFamily Source #
The supported address families.
AddressFamilyInvalid | an invalid |
AddressFamilyIpv4 | an IPv4 address |
AddressFamilyIpv6 | an IPv6 address |
AnotherAddressFamily Int | Catch-all for unknown values |
Instances
CacheResponse
data CacheResponse Source #
No description available in the introspection data.
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
CacheType
The type of cache; this affects what kinds of responses will be saved.
Since: 2.34
CacheTypeSingleUser | a single-user cache |
CacheTypeShared | a shared cache |
AnotherCacheType Int | Catch-all for unknown values |
Instances
Enum CacheType Source # | |
Defined in GI.Soup.Enums succ :: CacheType -> CacheType # pred :: CacheType -> CacheType # fromEnum :: CacheType -> Int # enumFrom :: CacheType -> [CacheType] # enumFromThen :: CacheType -> CacheType -> [CacheType] # enumFromTo :: CacheType -> CacheType -> [CacheType] # enumFromThenTo :: CacheType -> CacheType -> CacheType -> [CacheType] # | |
Show CacheType Source # | |
Eq CacheType Source # | |
Ord CacheType Source # | |
Defined in GI.Soup.Enums | |
BoxedEnum CacheType Source # | |
Defined in GI.Soup.Enums | |
TypedObject CacheType Source # | |
Defined in GI.Soup.Enums | |
HasParentTypes CacheType Source # | |
Defined in GI.Soup.Enums | |
type ParentTypes CacheType Source # | |
Defined in GI.Soup.Enums |
ConnectionState
data ConnectionState Source #
No description available in the introspection data.
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
CookieJarAcceptPolicy
data CookieJarAcceptPolicy Source #
The policy for accepting or rejecting cookies returned in responses.
Since: 2.30
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 |
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 |
AnotherCookieJarAcceptPolicy Int | Catch-all for unknown values |
Instances
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.
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 |
DateFormatIso8601Xmlrpc | ISO 8601 date/time as used by XML-RPC. Eg, "19941106T09:49:37". |
AnotherDateFormat Int | Catch-all for unknown values |
Instances
Encoding
How a message body is encoded for transport
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
Enum Encoding Source # | |
Show Encoding Source # | |
Eq Encoding Source # | |
Ord Encoding Source # | |
Defined in GI.Soup.Enums | |
BoxedEnum Encoding Source # | |
Defined in GI.Soup.Enums | |
TypedObject Encoding Source # | |
Defined in GI.Soup.Enums | |
HasParentTypes Encoding Source # | |
Defined in GI.Soup.Enums | |
type ParentTypes Encoding Source # | |
Defined in GI.Soup.Enums |
HTTPVersion
data HTTPVersion Source #
Indicates the HTTP protocol version being used.
HTTPVersionHttp10 | HTTP 1.0 (RFC 1945) |
HTTPVersionHttp11 | HTTP 1.1 (RFC 2616) |
AnotherHTTPVersion Int | Catch-all for unknown values |
Instances
KnownStatusCode
data KnownStatusCode Source #
No description available in the introspection data.
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
LoggerLogLevel
data LoggerLogLevel Source #
Describes the level of logging output to provide.
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
MemoryUse
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.
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
|
MemoryUseCopy | The passed-in data belongs to the caller; the
|
MemoryUseTemporary | The passed-in data belongs to the caller,
but will remain valid for the lifetime of the |
AnotherMemoryUse Int | Catch-all for unknown values |
Instances
Enum MemoryUse Source # | |
Defined in GI.Soup.Enums succ :: MemoryUse -> MemoryUse # pred :: MemoryUse -> MemoryUse # fromEnum :: MemoryUse -> Int # enumFrom :: MemoryUse -> [MemoryUse] # enumFromThen :: MemoryUse -> MemoryUse -> [MemoryUse] # enumFromTo :: MemoryUse -> MemoryUse -> [MemoryUse] # enumFromThenTo :: MemoryUse -> MemoryUse -> MemoryUse -> [MemoryUse] # | |
Show MemoryUse Source # | |
Eq MemoryUse Source # | |
Ord MemoryUse Source # | |
Defined in GI.Soup.Enums | |
BoxedEnum MemoryUse Source # | |
Defined in GI.Soup.Enums | |
TypedObject MemoryUse Source # | |
Defined in GI.Soup.Enums | |
HasParentTypes MemoryUse Source # | |
Defined in GI.Soup.Enums | |
type ParentTypes MemoryUse Source # | |
Defined in GI.Soup.Enums |
MessageHeadersType
data MessageHeadersType Source #
Value passed to messageHeadersNew
to set certain default
behaviors.
MessageHeadersTypeRequest | request headers |
MessageHeadersTypeResponse | response headers |
MessageHeadersTypeMultipart | multipart body part headers |
AnotherMessageHeadersType Int | Catch-all for unknown values |
Instances
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.
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
|
MessagePriorityNormal | The default priotity, this is the
priority assigned to the |
MessagePriorityHigh | High priority, a |
MessagePriorityVeryHigh | The highest priority, use this
for very urgent |
AnotherMessagePriority Int | Catch-all for unknown values |
Instances
RequestError
data RequestError Source #
A Request
error.
Since: 2.42
RequestErrorBadUri | the URI could not be parsed |
RequestErrorUnsupportedUriScheme | the URI scheme is not
supported by this |
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
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.
RequesterErrorBadUri | No description available in the introspection data. |
RequesterErrorUnsupportedUriScheme | No description available in the introspection data. |
AnotherRequesterError Int | Catch-all for unknown values |
Instances
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
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
SocketIOStatus
data SocketIOStatus Source #
Return value from the Socket
IO methods.
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
Status
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.
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
|
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
|
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
Enum Status Source # | |
Defined in GI.Soup.Enums | |
Show Status Source # | |
Eq Status Source # | |
Ord Status Source # | |
BoxedEnum Status Source # | |
Defined in GI.Soup.Enums | |
TypedObject Status Source # | |
Defined in GI.Soup.Enums | |
HasParentTypes Status Source # | |
Defined in GI.Soup.Enums | |
type ParentTypes Status Source # | |
Defined in GI.Soup.Enums |
TLDError
Error codes for SOUP_TLD_ERROR
.
Since: 2.40
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
|
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
Enum TLDError Source # | |
Show TLDError Source # | |
Eq TLDError Source # | |
Ord TLDError Source # | |
Defined in GI.Soup.Enums | |
BoxedEnum TLDError Source # | |
Defined in GI.Soup.Enums | |
TypedObject TLDError Source # | |
Defined in GI.Soup.Enums | |
GErrorClass TLDError Source # | |
Defined in GI.Soup.Enums gerrorClassDomain :: TLDError -> Text | |
HasParentTypes TLDError Source # | |
Defined in GI.Soup.Enums | |
type ParentTypes TLDError Source # | |
Defined in GI.Soup.Enums |
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
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
WebsocketConnectionType
data WebsocketConnectionType Source #
The type of a WebsocketConnection
.
Since: 2.50
WebsocketConnectionTypeUnknown | unknown/invalid connection |
WebsocketConnectionTypeClient | a client-side connection |
WebsocketConnectionTypeServer | a server-side connection |
AnotherWebsocketConnectionType Int | Catch-all for unknown values |
Instances
WebsocketDataType
data WebsocketDataType Source #
The type of data contained in a WebsocketConnection::message signal.
Since: 2.50
WebsocketDataTypeText | UTF-8 text |
WebsocketDataTypeBinary | binary data |
AnotherWebsocketDataType Int | Catch-all for unknown values |
Instances
WebsocketError
data WebsocketError Source #
WebSocket-related errors.
Since: 2.50
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
WebsocketState
data WebsocketState Source #
The state of the WebSocket connection.
Since: 2.50
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
XMLRPCError
data XMLRPCError Source #
No description available in the introspection data.
XMLRPCErrorArguments | No description available in the introspection data. |
XMLRPCErrorRetval | No description available in the introspection data. |
AnotherXMLRPCError Int | Catch-all for unknown values |
Instances
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.
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 |