Safe Haskell | None |
---|---|
Language | Haskell2010 |
A light-weight wrapper around Network.Wai
to provide easy conduit support.
- 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