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


-- | Streaming Wai utilities
--   
--   Please see README.md
@package streaming-wai
@version 0.1.1

module Network.Wai.Streaming
data Flush a
Chunk :: a -> Flush a
Flush :: Flush a

-- | Stream the <a>Request</a> body
streamingRequest :: MonadIO m => Request -> Stream (Of ByteString) m ()

-- | Stream strict <a>ByteString</a>s into a <a>Response</a>
streamingResponse :: Stream (Of ByteString) IO r -> Status -> ResponseHeaders -> Response

-- | Stream strict <a>ByteString</a>s into a <a>StreamingBody</a>
streamingBody :: Stream (Of ByteString) IO r -> StreamingBody

-- | Stream <a>Builder</a>s into a <a>Response</a>
streamingResponseF :: Stream (Of (Flush Builder)) IO r -> Status -> ResponseHeaders -> Response

-- | Stream <a>Builder</a>s into a <a>StreamingBody</a>
streamingBodyF :: Stream (Of (Flush Builder)) IO r -> StreamingBody
instance GHC.Base.Functor Network.Wai.Streaming.Flush
instance GHC.Show.Show a => GHC.Show.Show (Network.Wai.Streaming.Flush a)
