[cgiapp] Streaming Large Files using PSGI

Mike Tonks fluffymike at googlemail.com
Mon Oct 8 11:55:01 EDT 2012


Hi Mark,

Thanks for the feedback.  OK I'll have a go then.

Here's my initial attempts...

https://github.com/miketonks/CGI--Application

https://github.com/miketonks/CGI-Application-Plugin-Stream

Does this approach seem ok?

mike


On 5 October 2012 14:03, Mark Stosberg <mark at summersault.com> wrote:

> Mike,
>
> My reading of the spec is that you can return a callback instead of a
> body, and the Plack server should handle the rest:
>
> https://metacpan.org/module/PSGI#Delayed-Response-and-Streaming-Body
>
> If the server doesn't suppport streaming, a MiddleWare can provide it:
>
> https://metacpan.org/module/Plack::Middleware::BufferedStreaming
>
> I have not needed to do this yet myself with PSGI (but will eventually).
>
>    Mark


More information about the cgiapp mailing list