pipes-wai-3.0.1: 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

Documentation

data Flush a Source

Constructors

Chunk a 
Flush 

Instances

Functor Flush 
Eq a => Eq (Flush a) 
Ord a => Ord (Flush a) 
Show a => Show (Flush a) 

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