| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Imm.HTTP
Contents
Description
HTTP module abstracts over HTTP requests to the external world.
- class MonadThrow m => MonadHttpClient m where
- get :: (MonadHttpClient m, MonadLog m, MonadThrow m) => URI -> m LByteString
Types
class MonadThrow m => MonadHttpClient m where Source #
Monad capable of performing GET HTTP requests.
Minimal complete definition
Methods
httpGet :: URI -> m LByteString Source #
Instances
| (MonadThrow m, MonadHttpClient (ReaderT * a m)) => MonadHttpClient (ReaderT * (Modules a b c d e) m) Source # | |
Primitives
get :: (MonadHttpClient m, MonadLog m, MonadThrow m) => URI -> m LByteString Source #
Simple wrapper around httpGet that also logs the requested URI.