unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: 宋文武 <iyzsong@member.fsf.org>
To: 35142@debbugs.gnu.org
Cc: 宋文武 <iyzsong@member.fsf.org>
Subject: [bug#35142] [PATCH 7/8] gnu: Add perl-plack-middleware-deflater.
Date: Sat,  6 Apr 2019 08:50:04 +0800	[thread overview]
Message-ID: <20190406005005.3893-7-iyzsong@member.fsf.org> (raw)
In-Reply-To: <20190406005005.3893-1-iyzsong@member.fsf.org>

* gnu/packages/web.scm (perl-plack-middleware-deflater): New variable.
---
 gnu/packages/web.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index e84b42358c..81c7c5bc88 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -3374,6 +3374,35 @@ application frameworks.  Plack is like Ruby's Rack or Python's Paste for
 WSGI.")
     (license l:perl-license)))
 
+(define-public perl-plack-middleware-deflater
+  (package
+    (name "perl-plack-middleware-deflater")
+    (version "0.12")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/K/KA/KAZEBURO/"
+             "Plack-Middleware-Deflater-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0xf2visi16hgwgyp9q0cjr10ikbn474hjia5mj8mb2scvbkrbni8"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-module-install" ,perl-module-install)
+       ("perl-test-requires" ,perl-test-requires)))
+    (propagated-inputs
+     `(("perl-plack" ,perl-plack)))
+    (home-page "https://metacpan.org/release/Plack-Middleware-Deflater")
+    (synopsis "Compress response body with Gzip or Deflate")
+    (description
+     "Plack::Middleware::Deflater is a middleware to encode your response body
+in gzip or deflate, based on \"Accept-Encoding\" HTTP request header.  It
+would save the bandwidth a little bit but should increase the Plack server
+load, so ideally you should handle this on the frontend reverse proxy
+servers.")
+    (license l:perl-license)))
+
 (define-public perl-plack-middleware-fixmissingbodyinredirect
   (package
     (name "perl-plack-middleware-fixmissingbodyinredirect")
-- 
2.19.2

  parent reply	other threads:[~2019-04-06  0:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-04 14:49 [bug#35142] [PATCH] gnu: Add perl-email-address-xs 宋文武
2019-04-06  0:49 ` [bug#35142] [PATCH 1/8] " 宋文武
2019-04-06  0:49   ` [bug#35142] [PATCH 2/8] gnu: Add perl-devel-leak 宋文武
2019-04-06  0:50   ` [bug#35142] [PATCH 3/8] gnu: Add perl-filesys-notify-simple 宋文武
2019-04-06  0:50   ` [bug#35142] [PATCH 4/8] gnu: Add perl-sys-syscall 宋文武
2019-04-06  0:50   ` [bug#35142] [PATCH 5/8] gnu: Add perl-danga-socket 宋文武
2019-04-06  0:50   ` [bug#35142] [PATCH 6/8] gnu: Add perl-search-xapian 宋文武
2019-04-06  0:50   ` 宋文武 [this message]
2019-04-06  0:50   ` [bug#35142] [PATCH 8/8] gnu: Add public-inbox 宋文武
2020-03-01  2:39 ` bug#35142: Status: [PATCH 0/8] " 宋文武

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190406005005.3893-7-iyzsong@member.fsf.org \
    --to=iyzsong@member.fsf.org \
    --cc=35142@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).