calamity-0.1.0.0: A library for writing discord bots

Safe HaskellNone
LanguageHaskell2010

Calamity.HTTP.Internal.Request

Description

Generic Request type

Documentation

class Request a r | a -> r where Source #

Minimal complete definition

toRoute, toAction

Methods

toRoute :: a -> Route Source #

url :: a -> String Source #

toAction :: a -> Options -> String -> IO (Response ByteString) Source #

invokeRequest :: forall reffs. (BotC reffs, FromJSON r) => a -> Sem reffs (Either RestError r) Source #

postWith' :: Postable a => a -> Options -> String -> IO (Response ByteString) Source #

putWith' :: Putable a => a -> Options -> String -> IO (Response ByteString) Source #

patchWith' :: Patchable a => a -> Options -> String -> IO (Response ByteString) Source #

getWithP :: (Options -> Options) -> Options -> String -> IO (Response ByteString) Source #