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

Safe HaskellNone
LanguageHaskell2010

Pipes.Wai

Contents

Description

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

Synopsis

Documentation

data Flush a Source #

Constructors

Chunk a 
Flush 

Instances

Functor Flush Source # 

Methods

fmap :: (a -> b) -> Flush a -> Flush b #

(<$) :: a -> Flush b -> Flush a #

Eq a => Eq (Flush a) Source # 

Methods

(==) :: Flush a -> Flush a -> Bool #

(/=) :: Flush a -> Flush a -> Bool #

Ord a => Ord (Flush a) Source # 

Methods

compare :: Flush a -> Flush a -> Ordering #

(<) :: Flush a -> Flush a -> Bool #

(<=) :: Flush a -> Flush a -> Bool #

(>) :: Flush a -> Flush a -> Bool #

(>=) :: Flush a -> Flush a -> Bool #

max :: Flush a -> Flush a -> Flush a #

min :: Flush a -> Flush a -> Flush a #

Show a => Show (Flush a) Source # 

Methods

showsPrec :: Int -> Flush a -> ShowS #

show :: Flush a -> String #

showList :: [Flush a] -> ShowS #

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 () -> Response Source #

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 -> Response Source #

Create a raw response using a Producer and Consumer to represent the input and output, respectively.

Since 3.0.0

Re-export