plack / Plack

PSGI toolkit and server adapters
http://plackperl.org/
Other
486 stars 214 forks source link

Plack::Response to support streaming #80

Open miyagawa opened 14 years ago

mokko commented 13 years ago

Is this still on the todo list or does http://bulknews.typepad.com/blog/2009/10/psgiplack-streaming-is-now-complete.html mean that is done already? Thanks!

miyagawa commented 13 years ago

I think you're confused.

Plack::Response doesn't natively support streaming response type but you could easily return sub from your app and pass ->finalize to the callback.

mokko commented 13 years ago

I sure am confused! So, I don't need this to make some kind of streaming work. Not sure I understand how I return from my app to pass finalize in a callback. Will continue pondering over streaming examples from plack. Thanks for the quick answer!

miyagawa commented 13 years ago

Look at echo-streaming(-sync).psgi and they don't use Plack::Response.