-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | conduit wrappers for WAI
--   
--   Since version 3.0.0, WAI has no built-in streaming data abstraction.
--   This library provides similar functionality to what existed in WAI
--   2.x.
@package wai-conduit
@version 3.0.0


-- | A light-weight wrapper around <tt>Network.Wai</tt> to provide easy
--   conduit support.
module Network.Wai.Conduit

-- | Stream the request body.
--   
--   Since 3.0.0
sourceRequestBody :: MonadIO m => Request -> Source m ByteString

-- | Create an HTTP response out of a <tt>Source</tt>.
--   
--   Since 3.0.0
responseSource :: Status -> ResponseHeaders -> Source IO (Flush Builder) -> Response

-- | Create a raw response using a <tt>Source</tt> and <tt>Sink</tt> to
--   represent the input and output, respectively.
--   
--   Since 3.0.0
responseRawSource :: (MonadIO m, MonadIO n) => (Source m ByteString -> Sink ByteString n () -> IO ()) -> Response -> Response
