Copyright | Aaron Taylor 2016 |
---|---|
License | MIT |
Maintainer | aaron@hamsterdam.co |
Safe Haskell | None |
Language | Haskell2010 |
Class, instances and transformer for monads capable of HTTP requests.
In some cases, it is useful to generalize this capability. For example, it can be used provide mock responses for testing.
Class
class Monad m => MonadHttp m where Source #
The class of monads capable of HTTP requests.
performRequest :: Request -> m (Response ByteString) Source #
Transformer
An HTTP transformer monad parameterized by an inner monad m
.
HttpT | |
|
MonadTrans HttpT Source # | |
MonadError e m => MonadError e (HttpT m) Source # | |
Monad m => Monad (HttpT m) Source # | |
Functor m => Functor (HttpT m) Source # | |
Applicative m => Applicative (HttpT m) Source # | |
MonadIO m => MonadIO (HttpT m) Source # | |
MonadThrow m => MonadThrow (HttpT m) Source # | |
MonadCatch m => MonadCatch (HttpT m) Source # | |
MonadThrow m => MonadHttp (HttpT m) Source # | |
Monad m => MonadReader (Response ByteString) (HttpT m) Source # | |