Safe Haskell | None |
---|---|
Language | Haskell98 |
- newtype RequestF a = RequestF (Request, Response ByteString -> a)
- newtype RequestT m a = RequestT {
- runRequestT :: FreeT RequestF m a
- class Monad m => MonadRequest m where
- request :: (Response ByteString -> m a) -> Request -> m a
- baseURL :: Text
- runRequest' :: (Monad m, MonadIO m) => (Text, Text) -> RequestT m a -> m a
Documentation
RequestF
represents an HTTP request and stores a continuaton for the
eventual Response
to the request.
RequestF (Request, Response ByteString -> a) |
augments an existing monad RequestT
m am
with the ability to
perform HTTP requests for Resource
s.
RequestT | |
|
class Monad m => MonadRequest m where Source
request :: (Response ByteString -> m a) -> Request -> m a Source
Monad m => MonadRequest (RequestT m) | |
Monad m => MonadRequest (TwilioT m) |