Safe Haskell | None |
---|---|
Language | Haskell98 |
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.
httpGet :: URI -> m LByteString Source #
(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.