p5-Plack-Middleware-MethodOverride - Override REST methods to Plack apps via POST

Property Value
Distribution FreeBSD 12
Repository FreeBSD Ports Latest amd64
Package filename p5-Plack-Middleware-MethodOverride-0.20.txz
Package name p5-Plack-Middleware-MethodOverride
Package version 0.20
Package release -
Package architecture amd64
Package type txz
Category perl5 www
Homepage https://metacpan.org/release/Plack-Middleware-MethodOverride
License GPLv1+, ART10
Maintainer sunpoet@FreeBSD.org
Download size 8.23 KB
Installed size 13.67 KB
Writing RESTful apps is a good thing, but if you're also trying to support web
browsers, you're probably going to need some hackish workarounds. This module
provides one such workaround for your Plack applications.
Specifically, you can also use a header named X-HTTP-Method-Override (as used by
Google for its APIs) override the POST request method. Or you can add a
parameter named x-tunneled-method to your form action's query. Either way, the
overriding works only via POST requests, not GET.
If either of these attributes are available in a POST request, the
REQUEST_METHOD key of the Plack environment hash will be replaced with its
value. This allows your apps to override any HTTP method over POST. If your
application needs to know that such overriding has taken place, the original
method is stored under the plack.original_request_method key in the Plack
environment hash.
The list of methods you can specify are: GET, POST, HEAD, PUT, DELETE, OPTIONS,
WWW: https://metacpan.org/release/Plack-Middleware-MethodOverride


Package Version Architecture Repository
p5-Plack-Middleware-MethodOverride-0.20.txz 0.20 i386 FreeBSD Ports Quarterly
p5-Plack-Middleware-MethodOverride-0.20.txz 0.20 amd64 FreeBSD Ports Quarterly
p5-Plack-Middleware-MethodOverride-0.20.txz 0.20 i386 FreeBSD Ports Latest
p5-Plack-Middleware-MethodOverride - - -


Name Value
p5-Plack = 1.0047
perl5 = 5.28.1_1


Type URL
Mirror pkg.freebsd.org
Binary Package p5-Plack-Middleware-MethodOverride-0.20.txz
Source Package www/p5-Plack-Middleware-MethodOverride

Install Howto

Install p5-Plack-Middleware-MethodOverride txz package:

# pkg install p5-Plack-Middleware-MethodOverride

See Also

Package Description
p5-Plack-Middleware-NoMultipleSlashes-0.001.txz Remove multiple slashes in your paths automatically
p5-Plack-Middleware-Precompressed-1.103.txz Perl extension to serve pre-gzipped content to capable clients
p5-Plack-Middleware-RemoveRedundantBody-0.09.txz Sets removes body for HTTP response if it is not required
p5-Plack-Middleware-Reproxy-0.00004_1.txz Perl extension to handle X-Reproxy-URL from within Plack
p5-Plack-Middleware-ReverseProxy-0.15_1.txz Perl extension to support app to run as a reverse proxy backend
p5-Plack-Middleware-Rewrite-2.101.txz mod_rewrite for Plack
p5-Plack-Middleware-ServerStatus-Lite-0.34_2.txz Plack middleware to show server status like Apache mod_status
p5-Plack-Middleware-Session-0.30.txz Perl extension for session management middleware for Plack
p5-Plack-Middleware-SocketIO-0.00904_2.txz Perl extension for Socket.IO Plack middleware
p5-Plack-Middleware-Status-1.101150_1.txz Perl extension to map urls to status code-driven responses for Plack
p5-Plack-Middleware-Test-StashWarnings-0.08_1.txz Test your application's warnings
p5-Plack-Middleware-Throttle-0.01_1.txz Perl extension of rate-limiting incoming HTTP requests for Plack
p5-Plack-Middleware-XForwardedFor-0.172050.txz Plack middleware to handle X-Forwarded-For headers
p5-Plack-Server-Coro-0.02_1.txz Perl extension for Coro cooperative multithread web server
p5-Plack-Server-POE-0.4_1.txz Perl extension for Plack Server implementation for POE