./www/p5-Plack-Middleware-MethodOverride, Override REST methods to Plack apps via POST

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.15nb1, Package name: p5-Plack-Middleware-MethodOverride-0.15nb1, Maintainer: pkgsrc-users

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.


Required to run:
[lang/perl5]

Master sites:

SHA1: f9afb37cd236a15c4e973baab0bf1389bc0778d4
RMD160: 2868e773ea5ef1b366d5d2752e941619622d6a01
Filesize: 12.217 KB

Version history: (Expand)


CVS history: (Expand)


   2016-09-20 14:59:25 by Thomas Klausner | Files touched by this commit (12)
Log message:
Remove url2pkg marker.
   2016-06-08 21:25:20 by Thomas Klausner | Files touched by this commit (2236) | Package updated
Log message:
Bump PKGREVISION for perl-5.24.
   2015-11-27 23:20:08 by Makoto Fujiwara | Files touched by this commit (3)
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.