Re: Streaming Large Files using PSGI
Mike Tonks <[email protected]> Mon, 8 Oct 2012 16:55:01 +0100
| Newsgroups | gmane.comp.lang.perl.modules.cgi-appplication |
|---|---|
| Message-ID | <CAM89dM7PPsrCkyS5ezgM-aJgJXPhFQiZEJrfANJfQ_CEwE8WDw@mail.gmail.com> |
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 <[email protected]> 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 ##### CGI::Application community mailing list ################ ## ## ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ## ## ## ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ## ## ################################################################