wai-conduit-3.0.0: conduit wrappers for WAI

Safe HaskellNone

Network.Wai.Conduit

Contents

Description

A light-weight wrapper around Network.Wai to provide easy conduit support.

Synopsis

Request body

sourceRequestBody :: MonadIO m => Request -> Source m ByteStringSource

Stream the request body.

Since 3.0.0

Response body

responseSource :: Status -> ResponseHeaders -> Source IO (Flush Builder) -> ResponseSource

Create an HTTP response out of a Source.

Since 3.0.0

responseRawSource :: (MonadIO m, MonadIO n) => (Source m ByteString -> Sink ByteString n () -> IO ()) -> Response -> ResponseSource

Create a raw response using a Source and Sink to represent the input and output, respectively.

Since 3.0.0

Re-export