Plack::Middleware::MethodOverride - Overrides HTTP method with X-HTTP-Method-Override header
use Plack::Builder; builder { enable "Plack::Middleware::MethodOverride"; $handler; };
Plack::Middleware::MethodOverride allows your application to override HTTP request method with the value specified in HTTP header value.
enable "Plack::Middleware::MethodOverride", header => 'X-HTTP-Method';
Specifies the HTTP header name to specify the overriding HTTP method. Defaults to X-HTTP-Method-Override.
X-HTTP-Method-Override
Tatsuhiko Miyagawa
Based on HTTP::Engine::Middleware::MethodOverride
Plack::Middleware
To install Plack, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack
CPAN shell
perl -MCPAN -e shell install Plack
For more information on module installation, please visit the detailed CPAN module installation guide.