guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/04: gnu: Add perl-http-lite.


From: guix-commits
Subject: 01/04: gnu: Add perl-http-lite.
Date: Fri, 3 Apr 2020 10:56:15 -0400 (EDT)

pgarlick pushed a commit to branch master
in repository guix.

commit ce3e95d78e6e76e6ab2d83204cf7c34286ab210c
Author: Paul Garlick <address@hidden>
AuthorDate: Thu Apr 2 20:34:10 2020 +0100

    gnu: Add perl-http-lite.
    
    * gnu/packages/web.scm (perl-http-lite): New variable.
---
 gnu/packages/web.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index d91f299..d20047a 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -40,6 +40,7 @@
 ;;; Copyright © 2020 Alexandros Theodotou <address@hidden>
 ;;; Copyright © 2020 Pierre Neidhardt <address@hidden>
 ;;; Copyright © 2018, 2019, 2020 Björn Höfling <address@hidden>
+;;; Copyright © 2020 Paul Garlick <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3254,6 +3255,35 @@ IO::Socket::INET, so you can perform socket operations 
directly on it too.")
 used by the HTTP protocol (and then some more).")
     (home-page "https://metacpan.org/release/HTTP-Date";)))
 
+(define-public perl-http-lite
+  (package
+    (name "perl-http-lite")
+    (version "2.44")
+    (source
+     (origin
+      (method url-fetch)
+      (uri (string-append
+            "mirror://cpan/authors/id/N/NE/NEILB/HTTP-Lite-"
+            version ".tar.gz"))
+      (sha256
+       (base32
+        "0z77nflj8zdcfg70kc93glq5kmd6qxn2nf7h70x4xhfg25wkvr1q"))))
+    (build-system perl-build-system)
+    (native-inputs `(("perl-cgi" ,perl-cgi)))
+    (home-page "https://metacpan.org/release/HTTP-Lite";)
+    (synopsis "Lightweight HTTP implementation")
+    (description "@code{HTTP::Lite} is a stand-alone lightweight
+HTTP/1.1 implementation for perl.  It is intended for use in
+situations where it is desirable to install the minimal number of
+modules to achieve HTTP support.  @code{HTTP::Lite} is ideal for
+CGI (or mod_perl) programs or for bundling for redistribution with
+larger packages where only HTTP GET and POST functionality are
+necessary.  @code{HTTP::Lite} is compliant with the Host header,
+necessary for name based virtual hosting, and supports proxies.
+Additionally, @code{HTTP::Lite} supports a callback to allow
+processing of request data as it arrives.")
+    (license license:perl-license)))
+
 (define-public perl-http-message
   (package
     (name "perl-http-message")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]