svn commit: r499772 - in head/www: . p5-HTTP-Simple
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Tue Apr 23 17:52:38 UTC 2019
Author: sunpoet
Date: Tue Apr 23 17:52:36 2019
New Revision: 499772
URL: https://svnweb.freebsd.org/changeset/ports/499772
Log:
Add p5-HTTP-Simple 0.002
HTTP::Simple is a wrapper of HTTP::Tiny that provides simplified functions for
performing HTTP requests in a similar manner to LWP::Simple, but with slightly
more useful error handling. For full control of the request process and response
handling, use HTTP::Tiny directly.
IO::Socket::SSL is required for HTTPS requests with HTTP::Tiny.
Request methods that return the body content of the response will return a byte
string suitable for directly printing, but that may need to be decoded for text
operations.
The HTTP::Tiny object used by these functions to make requests can be accessed
as $HTTP::Simple::UA (for example, to configure the timeout, or replace it with
a compatible object like HTTP::Tinyish).
The JSON encoder used by the JSON functions defaults to a JSON::PP instance, and
can be accessed as $HTTP::Simple::JSON.
WWW: https://metacpan.org/release/HTTP-Simple
Added:
head/www/p5-HTTP-Simple/
head/www/p5-HTTP-Simple/Makefile (contents, props changed)
head/www/p5-HTTP-Simple/distinfo (contents, props changed)
head/www/p5-HTTP-Simple/pkg-descr (contents, props changed)
head/www/p5-HTTP-Simple/pkg-plist (contents, props changed)
Modified:
head/www/Makefile
Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile Tue Apr 23 17:18:13 2019 (r499771)
+++ head/www/Makefile Tue Apr 23 17:52:36 2019 (r499772)
@@ -993,6 +993,7 @@
SUBDIR += p5-HTTP-Session-State-MobileAgentID
SUBDIR += p5-HTTP-Session-Store-DBI
SUBDIR += p5-HTTP-Session2
+ SUBDIR += p5-HTTP-Simple
SUBDIR += p5-HTTP-SimpleLinkChecker
SUBDIR += p5-HTTP-Size
SUBDIR += p5-HTTP-Thin
Added: head/www/p5-HTTP-Simple/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/p5-HTTP-Simple/Makefile Tue Apr 23 17:52:36 2019 (r499772)
@@ -0,0 +1,24 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= HTTP-Simple
+PORTVERSION= 0.002
+CATEGORIES= www perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Simple procedural interface to HTTP::Tiny
+
+LICENSE= ART20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${RUN_DEPENDS}
+RUN_DEPENDS= p5-IO-Socket-SSL>=0:security/p5-IO-Socket-SSL
+
+USES= perl5
+USE_PERL5= configure
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
Added: head/www/p5-HTTP-Simple/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/p5-HTTP-Simple/distinfo Tue Apr 23 17:52:36 2019 (r499772)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1556035811
+SHA256 (HTTP-Simple-0.002.tar.gz) = 2fd86af56b8d70faa29d2b606724fd5264c725c053dc0d665e4438ca03207bab
+SIZE (HTTP-Simple-0.002.tar.gz) = 18492
Added: head/www/p5-HTTP-Simple/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/p5-HTTP-Simple/pkg-descr Tue Apr 23 17:52:36 2019 (r499772)
@@ -0,0 +1,19 @@
+HTTP::Simple is a wrapper of HTTP::Tiny that provides simplified functions for
+performing HTTP requests in a similar manner to LWP::Simple, but with slightly
+more useful error handling. For full control of the request process and response
+handling, use HTTP::Tiny directly.
+
+IO::Socket::SSL is required for HTTPS requests with HTTP::Tiny.
+
+Request methods that return the body content of the response will return a byte
+string suitable for directly printing, but that may need to be decoded for text
+operations.
+
+The HTTP::Tiny object used by these functions to make requests can be accessed
+as $HTTP::Simple::UA (for example, to configure the timeout, or replace it with
+a compatible object like HTTP::Tinyish).
+
+The JSON encoder used by the JSON functions defaults to a JSON::PP instance, and
+can be accessed as $HTTP::Simple::JSON.
+
+WWW: https://metacpan.org/release/HTTP-Simple
Added: head/www/p5-HTTP-Simple/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/p5-HTTP-Simple/pkg-plist Tue Apr 23 17:52:36 2019 (r499772)
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/HTTP/Simple.pm
+%%PERL5_MAN3%%/HTTP::Simple.3.gz
More information about the svn-ports-head
mailing list