Plack::Middleware::XSendfile - Sets X-Sendfile (or a like) header for frontends
enable "Plack::Middleware::XSendfile";
You should use IO::File::WithPath or Plack::Util's set_io_path to add path method to an IO object in the body.
set_io_path
path
See http://github.com/rack/rack-contrib/blob/master/lib/rack/contrib/sendfile.rb for the frontend configuration.
Tatsuhiko Miyagawa
To install Plack, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack
CPAN shell
perl -MCPAN -e shell install Plack
For more information on module installation, please visit the detailed CPAN module installation guide.