http-monad-0.0.1: Monad abstraction for HTTP communication allowing lazy transfer and non-I/O simulationSource codeContentsIndex
Network.Monad.HTTP
Portabilitynon-portable (not tested)
Stabilityexperimental
Description
Synopsis
send :: (Monad m, C body) => Request body -> SynchronousExceptional body m (Exceptional ConnError (Bool, Response body))
receive :: (Monad m, C body) => SynchronousExceptional body m (Exceptional ConnError (Request body))
respond :: (Monad m, C body) => Response body -> SynchronousExceptional body m ()
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.
Produced by Haddock version 2.6.0