The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Plack::Middleware::OptionsOK

SYNOPSIS

# in app.psgi
use Plack::Builder;

my $app = sub { ... } # as usual

builder {
    enable "Plack::Middleware::OptionsOK",
    $app;
};

DESCRIPTION

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

OPTIONS

allow

allow => 'GET HEAD OPTIONS'

The the Allow header can be altered, it defaults to the list above.

AUTHOR

Leo Lapworth, LLAP@cuckoo.org

Contributors

Robert Rothenberg, rrwo@cpan.org

Repository (git)

https://github.com/ranguard/Plack-Middleware-OptionsOK, git://github.com/ranguard/Plack-Middleware-OptionsOK.git

COPYRIGHT

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.

SEE ALSO

Plack Plack::Builder Perlbal