much easier than that
$res->body($io); Or use Path::Tiny qw/ path /; return [ 200, [ 'Content-Type' => 'text/plain; charset=UTF-8', ], path( __FILE__ )->openr_raw, ];
https://metacpan.org/pod/Plack::Response#body
In reply to Re: Download big file in chunks with plack response
by Anonymous Monk
in thread Download big file in chunks with plack response
by Thenothing
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |