Safe Haskell | None |
---|---|
Language | Haskell2010 |
Generic Request type
Documentation
class Request a where Source #
action :: a -> Options -> String -> IO (Response ByteString) Source #
invoke :: (BotC r, FromJSON (Result a)) => a -> Sem r (Either RestError (Result a)) Source #
Instances
postWithP' :: Postable a => a -> (Options -> Options) -> Options -> String -> IO (Response ByteString) Source #
patchWith' :: Patchable a => a -> Options -> String -> IO (Response ByteString) Source #
postEmptyP :: (Options -> Options) -> Options -> String -> IO (Response ByteString) Source #