twilio-0.1.1.0: Twilio REST API library for Haskell

Safe HaskellNone
LanguageHaskell98

Twilio.Internal.Request

Synopsis

Documentation

newtype RequestF a Source

RequestF represents an HTTP request and stores a continuaton for the eventual Response to the request.

Constructors

RequestF (Request, Response ByteString -> a) 

Instances

newtype RequestT m a Source

RequestT m a augments an existing monad m with the ability to perform HTTP requests for Resources.

Constructors

RequestT 

Fields

runRequestT :: FreeT RequestF m a
 

Instances

MonadTrans RequestT 
Monad m => Monad (RequestT m) 
Monad m => Functor (RequestT m) 
Monad m => Applicative (RequestT m) 
MonadIO m => MonadIO (RequestT m) 
Monad m => MonadRequest (RequestT m) 
Generic (RequestT m a) 
Typeable ((* -> *) -> * -> *) RequestT 
type Rep (RequestT m a) 

class Monad m => MonadRequest m where Source

Methods

request :: (Response ByteString -> m a) -> Request -> m a Source

Instances

baseURL :: Text Source

A dummy interpreter

runRequest' :: (Monad m, MonadIO m) => (Text, Text) -> RequestT m a -> m a Source