Plack::Middleware::Header - modify HTTP response headers
use Plack::Builder; my $app = sub {['200', [], ['hello']]}; builder { enable 'Header', set => ['X-Plack-One' => '1'], append => ['X-Plack-Two' => '2'], unset => ['X-Plack-Three']; $app; };
Plack::Middleware::Header
Masahiro Chiba
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Plack::Middleware Plack::Builder
To install Plack::Middleware::Header, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Header
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Header
For more information on module installation, please visit the detailed CPAN module installation guide.