Path to this page:
./
www/p5-Plack-Middleware-MethodOverride,
Override REST methods to Plack apps via POST
Branch: pkgsrc-2022Q3,
Version: 0.20nb5,
Package name: p5-Plack-Middleware-MethodOverride-0.20nb5,
Maintainer: pkgsrc-usersWriting 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.
Master sites: (Expand)
Filesize: 12.417 KB
Version history: (Expand)
- (2022-09-26) Package added to pkgsrc.se, version p5-Plack-Middleware-MethodOverride-0.20nb5 (created)