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

Copyright(c) 2009 Henning Thielemann
LicenseBSD
Stabilityexperimental
Portabilitynon-portable (not tested)
Safe HaskellSafe
LanguageHaskell98

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.