Safe Haskell | None |
---|---|
Language | Haskell2010 |
Types for the http lib
Documentation
Instances
Show RestError Source # | |
Generic RestError Source # | |
type Rep RestError Source # | |
Defined in Calamity.HTTP.Internal.Types type Rep RestError = D1 (MetaData "RestError" "Calamity.HTTP.Internal.Types" "calamity-0.1.0.0-inplace" False) (C1 (MetaCons "HTTPError" PrefixI True) (S1 (MetaSel (Just "status") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "response") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Value))) :+: C1 (MetaCons "DecodeError" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) |
data RateLimitState Source #
Instances
Generic RateLimitState Source # | |
Defined in Calamity.HTTP.Internal.Types type Rep RateLimitState :: Type -> Type # from :: RateLimitState -> Rep RateLimitState x # to :: Rep RateLimitState x -> RateLimitState # | |
type Rep RateLimitState Source # | |
Defined in Calamity.HTTP.Internal.Types type Rep RateLimitState = D1 (MetaData "RateLimitState" "Calamity.HTTP.Internal.Types" "calamity-0.1.0.0-inplace" False) (C1 (MetaCons "RateLimitState" PrefixI True) (S1 (MetaSel (Just "rateLimits") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Map Route Lock)) :*: S1 (MetaSel (Just "globalLock") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Event))) |
data DiscordResponseType Source #
Good ByteString | A good response |
ExhaustedBucket ByteString Int | Retry after (milliseconds) | We hit a 429, no response and ratelimited |
Ratelimited | |
ServerError Int | |
ClientError Int ByteString | Our error, we should fail |
data GatewayResponse Source #
Instances
Show GatewayResponse Source # | |
Defined in Calamity.HTTP.Internal.Types showsPrec :: Int -> GatewayResponse -> ShowS # show :: GatewayResponse -> String # showList :: [GatewayResponse] -> ShowS # | |
Generic GatewayResponse Source # | |
Defined in Calamity.HTTP.Internal.Types type Rep GatewayResponse :: Type -> Type # from :: GatewayResponse -> Rep GatewayResponse x # to :: Rep GatewayResponse x -> GatewayResponse # | |
FromJSON GatewayResponse Source # | |
Defined in Calamity.HTTP.Internal.Types parseJSON :: Value -> Parser GatewayResponse # parseJSONList :: Value -> Parser [GatewayResponse] # | |
type Rep GatewayResponse Source # | |
Defined in Calamity.HTTP.Internal.Types type Rep GatewayResponse = D1 (MetaData "GatewayResponse" "Calamity.HTTP.Internal.Types" "calamity-0.1.0.0-inplace" True) (C1 (MetaCons "GatewayResponse" PrefixI True) (S1 (MetaSel (Just "url") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) |
data BotGatewayResponse Source #