[web-devel] Sending a Response before the Request has been entirely consumed?

Gregory Collins greg at gregorycollins.net
Wed Sep 18 11:58:36 CEST 2013


On Wed, Sep 18, 2013 at 1:54 AM, Jeremy Shaw <jeremy at n-heptane.com> wrote:

> I'm still thinking that sending a response body that depends on the
> request body before the whole request body has been received is asking for
> trouble.


We allow you to do this in Snap but you have to explicitly ask for it. An
example application here would be streaming transcoding. The client has to
be written with this in mind in order for this to work (if it's not reading
the response while it's streaming the request body, eventually its write()s
will block), so this is a feature that only really makes sense for API
servers.

G
-- 
Gregory Collins <greg at gregorycollins.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20130918/2d3ff9ab/attachment.htm>


More information about the web-devel mailing list