From 03d874d069a565a7a55606024c572873aa362bf2 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Thu, 12 Mar 2015 12:45:40 -0500 Subject: [PATCH] gnu: Add Plack-Middleware-MethodOverride. * gnu/packages/web.scm (perl-plack-middleware-methodoverride): New variable. --- gnu/packages/web.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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")