Copyright | (C) 2017- Mark Andrus Roberts |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Mark Andrus Roberts <markandrusroberts@gmail.com> |
Stability | provisional |
Safe Haskell | None |
Language | Haskell98 |
Twilio.Internal.Request
Description
- newtype RequestF a = RequestF (Request, Response ByteString -> a)
- newtype RequestT m a = RequestT {
- runRequestT :: FreeT RequestF m a
- class Monad m => MonadRequest m where
- baseURL :: Text
- runRequest' :: 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 #
Minimal complete definition
Methods
request :: (Response ByteString -> m a) -> Request -> m a #
Instances
Monad m => MonadRequest (RequestT m) # | |
Monad m => MonadRequest (TwilioT m) # | |
runRequest' :: MonadIO m => (Text, Text) -> RequestT m a -> m a #