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
| System | Port | Version |
|---|---|---|
| NetBSD | www/p5-Plack-Middleware-MethodOverride | 0.20nb9 |
| FreeBSD | www/p5-Plack-Middleware-MethodOverride | 0.20 |
| OpenBSD | www/p5-Plack-Middleware-MethodOverride | 0.20 |
| DragonFly | www/p5-Plack-Middleware-MethodOverride | 0.20 |
| HardenedBSD | www/p5-Plack-Middleware-MethodOverride | 0.20 |
| GhostBSD | www/p5-Plack-Middleware-MethodOverride | 0.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.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.20nb9 |
| NetBSD 10.1 aarch64 | 0.20nb8 |
| SmartOS / illumos x86_64 | 0.20nb9 |
| macOS 15 arm64 | 0.20nb9 |