imm-1.2.1.0: Execute arbitrary actions for each unread element of RSS/Atom feeds

Safe HaskellNone
LanguageHaskell98

Imm.HTTP

Contents

Description

DSL/interpreter model for the HTTP client

Synopsis

Types

data HttpClientF next Source #

HTTP client DSL

Constructors

Get URI (Either SomeException LByteString -> next) 

Instances

Functor HttpClientF Source # 

Methods

fmap :: (a -> b) -> HttpClientF a -> HttpClientF b #

(<$) :: a -> HttpClientF b -> HttpClientF a #

Monad m => PairingM (CoHttpClientF m) HttpClientF m Source # 

Methods

pairM :: (a -> b -> m r) -> CoHttpClientF m a -> HttpClientF b -> m r Source #

newtype CoHttpClientF m a Source #

HTTP client interpreter

Constructors

CoHttpClientF 

Fields

Instances

Functor m => Functor (CoHttpClientF m) Source # 

Methods

fmap :: (a -> b) -> CoHttpClientF m a -> CoHttpClientF m b #

(<$) :: a -> CoHttpClientF m b -> CoHttpClientF m a #

Monad m => PairingM (CoHttpClientF m) HttpClientF m Source # 

Methods

pairM :: (a -> b -> m r) -> CoHttpClientF m a -> HttpClientF b -> m r Source #

Primitives

get :: (MonadFree f m, HttpClientF :<: f, LoggerF :<: f, MonadThrow m) => URI -> m LByteString Source #

Perform an HTTP GET request