Safe Haskell | None |
---|---|
Language | Haskell98 |
Twilio.Internal.Request
- 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.
Constructors
RequestF (Request, Response ByteString -> a) |
augments an existing monad RequestT
m am
with the ability to
perform HTTP requests for Resource
s.
Constructors
RequestT | |
Fields
|
class Monad m => MonadRequest m where Source
Methods
request :: (Response ByteString -> m a) -> Request -> m a Source
Instances
Monad m => MonadRequest (RequestT m) | |
Monad m => MonadRequest (TwilioT m) |