pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/p5-Plack-Middleware-MethodOverride
Module Name: pkgsrc
Committed By: mef
Date: Fri Nov 27 22:20:08 UTC 2015
Added Files:
pkgsrc/www/p5-Plack-Middleware-MethodOverride: DESCR Makefile distinfo
Log Message:
Import p5-Plack-Middleware-MethodOverride-0.15 as www/p5-Plack-Middleware-MethodOverride.
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.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/www/p5-Plack-Middleware-MethodOverride/DESCR \
pkgsrc/www/p5-Plack-Middleware-MethodOverride/Makefile \
pkgsrc/www/p5-Plack-Middleware-MethodOverride/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index