Plack::Middleware::OptionsOK
# in app.psgi use Plack::Builder; my $app = sub { ... } # as usual builder { enable "Plack::Middleware::OptionsOK", $app; };
Many reverse Proxy servers (such as Perlbal) use an 'OPTIONS *' request to confirm if a server is running.
This middleware will respond with a '200' to this request so you do not have to handle it in your app. There will be no further processing after this
allow => 'GET HEAD OPTIONS'
The the Allow header can be altered, it defaults to the list above.
Allow
Leo Lapworth, LLAP@cuckoo.org
Robert Rothenberg, rrwo@cpan.org
https://github.com/ranguard/Plack-Middleware-OptionsOK, git://github.com/ranguard/Plack-Middleware-OptionsOK.git
Copyright (c) 2011 Leo Lapworth. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Plack Plack::Builder Perlbal
To install Plack::Middleware::OptionsOK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::OptionsOK
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::OptionsOK
For more information on module installation, please visit the detailed CPAN module installation guide.