diff options
author | Eric Bavier <bavier@member.fsf.org> | 2015-03-12 12:45:40 -0500 |
---|---|---|
committer | Eric Bavier <bavier@member.fsf.org> | 2015-03-12 15:55:58 -0500 |
commit | 03d874d069a565a7a55606024c572873aa362bf2 (patch) | |
tree | 925ca838870592992f1be3a6866fb14cc8793216 /gnu | |
parent | acd1f73a26d53692131c3af63731bc8839732156 (diff) | |
download | patches-03d874d069a565a7a55606024c572873aa362bf2.tar patches-03d874d069a565a7a55606024c572873aa362bf2.tar.gz |
gnu: Add Plack-Middleware-MethodOverride.
* gnu/packages/web.scm (perl-plack-middleware-methodoverride): New
variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/web.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 420d1dc918..b336cc2257 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -1122,6 +1122,30 @@ WSGI.") already set.") (license (package-license perl)))) +(define-public perl-plack-middleware-methodoverride + (package + (name "perl-plack-middleware-methodoverride") + (version "0.11") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/D/DW/DWHEELER/" + "Plack-Middleware-MethodOverride-" + version ".tar.gz")) + (sha256 + (base32 + "1hb8dx7i4vs74n0p737wrvpdnnw6argxrjpr6kj6432zabp8325z")))) + (build-system perl-build-system) + (propagated-inputs + `(("perl-plack" ,perl-plack))) + (home-page "http://search.cpan.org/dist/Plack-Middleware-MethodOverride") + (synopsis "Override REST methods to Plack apps via POST") + (description "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.") + (license (package-license perl)))) + (define-public perl-test-tcp (package (name "perl-test-tcp") |