Added some docs

This commit is contained in:
Michael Snoyman 2013-03-21 08:30:09 +02:00
parent 0546d566c3
commit ff3eb746f1

View File

@ -909,6 +909,12 @@ fileSource = transPipe liftResourceT . fileSourceRaw
-- | Use a @Source@ for the response body.
--
-- Note that, for ease of use, the underlying monad is a @HandlerT@. This
-- implies that you can run any @HandlerT@ action. However, since a streaming
-- response occurs after the response headers have already been sent, some
-- actions make no sense here. For example: short-circuit responses, setting
-- headers, changing status codes, etc.
--
-- Since 1.2.0
respondSource :: ContentType
-> Source (HandlerT site IO) (Flush Builder)