./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.20nb1, Package name: p5-Plack-Middleware-MethodOverride-0.20nb1, 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] [www/p5-Plack]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: fc184e8eccb33b5d6511927c82402e273e7b0620
RMD160: 3e46c46d3d7328a6b09261b54c583335b2592ec6
Filesize: 12.417 KB

Version history: (Expand)


CVS history: (Expand)


   2018-08-22 11:48:07 by Thomas Klausner | Files touched by this commit (3558)
Log message:
Recursive bump for perl5-5.28.0
   2018-05-30 14:02:08 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 0.20

Upstream changes:
0.20  2018-05-25 03:35:00 PDT
      - Repackage the module. Same as 0.15, except repositroy metadata updates

0.19  2018-05-25 03:12:21 PDT
      - Fix license and copyright that have been accidentally broken in
        0.16-8 META files

0.18  2018-05-24 23:01:57 PDT
      - Maintenance release to retroactively update Changes

0.17  2018-05-23 23:37:03 PDT
      - Fixed prereqs and META.json

0.16  2018-05-23 23:10:55 PDT
      - Module ownership transferred
      - Switch to Milla and Module::Build::Tiny
   2017-06-05 16:25:36 by Ryo ONODERA | Files touched by this commit (2298)
Log message:
Recursive revbump from lang/perl5 5.26.0
   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.