wai-conduit-3.0.0.4: conduit wrappers for WAI

Safe Haskell | Safe-Inferred
Language | Haskell2010

Network.Wai.Conduit

Contents

- Request body
- Response body
- Re-export

Description

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

Synopsis

- sourceRequestBody :: MonadIO m => Request -> Source m ByteString
- responseSource :: Status -> ResponseHeaders -> Source IO (Flush Builder) -> Response
- responseRawSource :: (MonadIO m, MonadIO n) => (Source m ByteString -> Sink ByteString n () -> IO ()) -> Response -> Response
- module Network.Wai

# Request body

sourceRequestBody :: MonadIO m => Request -> Source m ByteString Source #

Stream the request body.

Since 3.0.0

# Response body

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

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

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

Since 3.0.0

# Re-export

module Network.Wai