Plack::Middleware::Options - Implements OPTIONS and filters out unknown methods
0.01
use Plack::Builder; builder { enable 'Options', allowed => [qw/GET POST HEAD/]; $app; };
This module implements the OPTIONS HTTP method for your Plack application. It also returns a 405 Method Not Allowed error when a method not explicitly allowed is used.
An array reference of allowed HTTP methods. If omitted, defaults to all HTTP methods. You can also use a hash reference, in which case the keys of the hash will be used.
Rob Hoelz, rob at hoelz.ro
rob at hoelz.ro
Please report any bugs or feature requests to bug-Plack-Middleware-Options at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Plack-Middleware-Options. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-Plack-Middleware-Options at rt.cpan.org
Copyright 2011 Rob Hoelz.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Plack, Plack::Middleware
To install Plack::Middleware::Options, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Options
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Options
For more information on module installation, please visit the detailed CPAN module installation guide.