3 ms·
It looks like this offers no way to stream chunks of a response -- you send the whole thing as a list of strings, or tell it to send a file.
by pjscott 15y ago
It looks like this offers no way to stream chunks of a response -- you send the whole thing as a list of strings, or tell it to send a file.
- msbarnett 15y agoI believe that's normally implemented as middleware on top of Rack et al. I assume it's expected that the same strategy would be used here.
- pjscott 15y agoIIRC Rack and WSGI and Ring all let you return lazy sequences for the body, allowing you to stream responses.
- draegtun 15y agoPSGI/Plack also provides streaming responses by sending back a callback instead of the usual [$code, $headers, $body] array(ref). ref: http://bulknews.typepad.com/blog/2009/10/psgiplack-streaming-is-now-complete.html http://bulknews.typepad.com/blog/2009/10/psgiplack-streaming...