++ed by:
Rob Hoelz

NAME

Plack::Middleware::Options - Implements OPTIONS and filters out unknown methods

VERSION

0.01

SYNOPSIS

  use Plack::Builder;

  builder {
      enable 'Options', allowed => [qw/GET POST HEAD/];
      $app;
  };

DESCRIPTION

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.

PARAMETERS

allowed

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.

AUTHOR

Rob Hoelz, rob at hoelz.ro

BUGS

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.

COPYRIGHT & LICENSE

Copyright 2011 Rob Hoelz.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Plack, Plack::Middleware




Hosting generously
sponsored by Bytemark