BSD Ports

www/p5-Plack-Middleware-MethodOverride 0.20nb9 NetBSD

Override REST methods to Plack apps via POST

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
618415630a
License
gnu-gpl-v2 OR artistic
Categories
www, perl5
Package size
7.1 KiB, 9.5 KiB installed

Description

Writing RESTful apps is a good thing, but if you're also trying to support web browsers, it would be nice not to be reduced to GET and POST for everything.

This middleware allows for POST requests that pretend to be something else: by adding either a header named X-HTTP-Method-Override to the request, or a query parameter named x-tunneled-method to the URI, the client can say what method it actually meant. That is, as long as it meant one of these: GET POST HEAD PUT DELETE OPTIONS TRACE CONNECT PATCH If so, then the REQUEST_METHOD in the PSGI environment will be replaced with the client's desired value. The original request method is always stored under the plack.original_request_method key.

In the other systems

SystemPortVersion
NetBSDwww/p5-Plack-Middleware-MethodOverride0.20nb9
FreeBSDwww/p5-Plack-Middleware-MethodOverride0.20
OpenBSDwww/p5-Plack-Middleware-MethodOverride0.20
DragonFlywww/p5-Plack-Middleware-MethodOverride0.20
HardenedBSDwww/p5-Plack-Middleware-MethodOverride0.20
GhostBSDwww/p5-Plack-Middleware-MethodOverride0.20

Install

Binary package:

pkgin install p5-Plack-Middleware-MethodOverride

From pkgsrc:

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

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.20nb9
NetBSD 10.1 aarch640.20nb8
SmartOS / illumos x86_640.20nb9
macOS 15 arm640.20nb9

Dependencies

Run dependencies 2
Required by 1

Commit history 1

DateCommitCreditsLog message
618415630a wiz *: recursive bump for perl5 5.44.0