Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.Wai.Streaming
Contents
- data Flush a
- streamingRequest :: MonadIO m => Request -> Stream (Of ByteString) m ()
- streamingResponse :: Stream (Of ByteString) IO r -> Status -> ResponseHeaders -> Response
- streamingBody :: Stream (Of ByteString) IO r -> StreamingBody
- streamingResponseF :: Stream (Of (Flush Builder)) IO r -> Status -> ResponseHeaders -> Response
- streamingBodyF :: Stream (Of (Flush Builder)) IO r -> StreamingBody
Documentation
ByteStrings
streamingRequest :: MonadIO m => Request -> Stream (Of ByteString) m () #
Stream the Request
body
streamingResponse :: Stream (Of ByteString) IO r -> Status -> ResponseHeaders -> Response #
Stream strict ByteString
s into a Response
streamingBody :: Stream (Of ByteString) IO r -> StreamingBody #
Stream strict ByteString
s into a StreamingBody
Flushed Builders
Using Flush allows you to explicitly control flushing behavior
streamingResponseF :: Stream (Of (Flush Builder)) IO r -> Status -> ResponseHeaders -> Response #
streamingBodyF :: Stream (Of (Flush Builder)) IO r -> StreamingBody #
Stream Builder
s into a StreamingBody