xich/scotty — pull request #13 by BardurArantsson (2012-05-25 04:38:48+00:00)
Title: Add "source" function to construct response directly from a Source

Adds a "source" function so that a response can be constructed from a

Source (ResourceT IO) (Flush Builder)

which is the "native" response source type for WAI.

Use case: Providing streaming data to an HTML5 EventSource in the client application requires a way to generate a streaming reply and Source is the most WAI-esque way of doing that.