Safe Haskell | None |
---|
A light-weight wrapper around Network.Wai
to provide easy conduit support.
- data Flush a
- producerRequestBody :: MonadIO m => Request -> Producer ByteString m ()
- responseProducer :: Status -> ResponseHeaders -> Producer (Flush Builder) IO () -> Response
- responseRawProducer :: (MonadIO m, MonadIO n) => (Producer ByteString m () -> Consumer ByteString n () -> IO ()) -> Response -> Response
- module Network.Wai
Documentation
Request body
producerRequestBody :: MonadIO m => Request -> Producer ByteString m ()Source
Stream the request body.
Since 3.0.0
Response body
responseProducer :: Status -> ResponseHeaders -> Producer (Flush Builder) IO () -> ResponseSource
Create an HTTP response out of a Producer
.
Since 3.0.0
responseRawProducer :: (MonadIO m, MonadIO n) => (Producer ByteString m () -> Consumer ByteString n () -> IO ()) -> Response -> ResponseSource
Create a raw response using a Producer
and Consumer
to represent the input
and output, respectively.
Since 3.0.0
Re-export
module Network.Wai