pipes-wai-3.0.0: A port of wai-conduit for the pipes ecosystem

Safe HaskellNone

Pipes.Wai

Contents

Description

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

Synopsis

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 Source and Sink to represent the input and output, respectively.

Since 3.0.0

Re-export