Tatsuhiko Miyagawa > Plack-0.9932 > Plack::Middleware::XSendfile

Download:
Plack-0.9932.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source   Latest Release: Plack-1.0031

NAME ^

Plack::Middleware::XSendfile - Sets X-Sendfile (or a like) header for frontends

SYNOPSIS ^

  enable "Plack::Middleware::XSendfile";

DESCRIPTION ^

You should use IO::File::WithPath or Plack::Util's set_io_path to add path method to an IO object in the body.

See http://github.com/rtomayko/rack-contrib/blob/master/lib/rack/sendfile.rb for the frontend configuration.

AUTHOR ^

Tatsuhiko Miyagawa

syntax highlighting: