http-monad-0.1.0.2: Monad abstraction for HTTP allowing lazy transfer and non-I/O simulation

Portabilitynon-portable (not tested)
Stabilityexperimental
Safe HaskellNone

Network.Monad.HTTP

Description

 

Synopsis

Documentation

send :: (Monad m, C body) => Request body -> SynchronousExceptional body m (Exceptional ConnError (Bool, Response body))Source

receive :: (Monad m, C body) => SynchronousExceptional body m (Exceptional ConnError (Request body))Source

Receive and parse a HTTP request from the given Stream. Should be used for server side interactions.

respond :: (Monad m, C body) => Response body -> SynchronousExceptional body m ()Source

Very simple function, send a HTTP response over the given stream. This could be improved on to use different transfer types.