BSD Ports

www/p5-Plack-Middleware-MethodOverride 0.20 DragonFly

Override REST methods to Plack apps via POST

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
perl5, www
Package size
12.0 KiB, 43.8 KiB installed

Description

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, TRACE and CONNECT.

In the other systems

The newest version among them is 0.20, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlywww/p5-Plack-Middleware-MethodOverride0.20 newestnone known-[email protected]-
FreeBSDwww/p5-Plack-Middleware-MethodOverride0.20 newestnone known-[email protected]-
OpenBSDwww/p5-Plack-Middleware-MethodOverride0.20 newestno data-Wen Heping <[email protected]>-
NetBSDwww/p5-Plack-Middleware-MethodOverride0.20nb9 newestnone known-[email protected]2026-07-16
HardenedBSDwww/p5-Plack-Middleware-MethodOverride0.20 newestno data-[email protected]-
GhostBSDwww/p5-Plack-Middleware-MethodOverride0.20 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install p5-Plack-Middleware-MethodOverride

From DPorts:

cd /usr/dports/www/p5-Plack-Middleware-MethodOverride && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 2
Required by 1