- Add p5-Net-Async-HTTP 0.39

Net::Async::HTTP implements an asynchronous HTTP user agent. It sends requests
to servers, returning Future instances to yield responses when they are
received. The object supports multiple concurrent connections to servers, and
allows multiple requests in the pipeline to any one connection. Normally, only
one such object will be needed per program to support any number of requests.

As well as using futures the module also supports a callback-based interface.

Net::Async::HTTP optionally supports SSL connections, if IO::Async::SSL is
installed. If so, SSL can be requested either by passing a URI with the https
scheme, or by passing a true value as the SSL parameter.

WWW: http://search.cpan.org/dist/Net-Async-HTTP/
This commit is contained in:
Sunpoet Po-Chuan Hsieh
2015-07-27 19:30:45 +00:00
parent 70d4758f72
commit 703a4c5d34
5 changed files with 64 additions and 0 deletions

View File

@@ -1081,6 +1081,7 @@
SUBDIR += p5-Net-Akismet
SUBDIR += p5-Net-Amazon-AWIS
SUBDIR += p5-Net-Async-FastCGI
SUBDIR += p5-Net-Async-HTTP
SUBDIR += p5-Net-FastCGI
SUBDIR += p5-Net-FireEagle
SUBDIR += p5-Net-Flickr-API

View File

@@ -0,0 +1,43 @@
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= Net-Async-HTTP
PORTVERSION= 0.39
CATEGORIES= www perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Use HTTP with IO::Async
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
BUILD_DEPENDS= p5-Future>=0.28:${PORTSDIR}/devel/p5-Future \
p5-HTTP-Cookies>=0:${PORTSDIR}/www/p5-HTTP-Cookies \
p5-HTTP-Message>=0:${PORTSDIR}/www/p5-HTTP-Message \
p5-IO-Async>=0.59:${PORTSDIR}/devel/p5-IO-Async \
p5-Struct-Dumb>=0:${PORTSDIR}/devel/p5-Struct-Dumb \
p5-URI>=0:${PORTSDIR}/net/p5-URI
RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-IO-Async-SSL>=0.12:${PORTSDIR}/security/p5-IO-Async-SSL \
p5-Test-Identity>=0:${PORTSDIR}/devel/p5-Test-Identity \
p5-Test-Refcount>=0:${PORTSDIR}/devel/p5-Test-Refcount
OPTIONS_DEFINE= SSL
NO_ARCH= yes
USE_PERL5= configure
USES= perl5
SSL_BUILD_DEPENDS= p5-IO-Async-SSL>=0.12:${PORTSDIR}/security/p5-IO-Async-SSL
SSL_RUN_DEPENDS= p5-IO-Async-SSL>=0.12:${PORTSDIR}/security/p5-IO-Async-SSL
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 502000
BUILD_DEPENDS+= p5-Scalar-List-Utils>=1.29:${PORTSDIR}/lang/p5-Scalar-List-Utils
RUN_DEPENDS+= p5-Scalar-List-Utils>=1.29:${PORTSDIR}/lang/p5-Scalar-List-Utils
.endif
.include <bsd.port.post.mk>

View File

@@ -0,0 +1,2 @@
SHA256 (Net-Async-HTTP-0.39.tar.gz) = ca3eead114ee855313aab8f26e340dafcb26830cb693eba10533aeb602a8a631
SIZE (Net-Async-HTTP-0.39.tar.gz) = 70421

View File

@@ -0,0 +1,13 @@
Net::Async::HTTP implements an asynchronous HTTP user agent. It sends requests
to servers, returning Future instances to yield responses when they are
received. The object supports multiple concurrent connections to servers, and
allows multiple requests in the pipeline to any one connection. Normally, only
one such object will be needed per program to support any number of requests.
As well as using futures the module also supports a callback-based interface.
Net::Async::HTTP optionally supports SSL connections, if IO::Async::SSL is
installed. If so, SSL can be requested either by passing a URI with the https
scheme, or by passing a true value as the SSL parameter.
WWW: http://search.cpan.org/dist/Net-Async-HTTP/

View File

@@ -0,0 +1,5 @@
%%SITE_PERL%%/Net/Async/HTTP.pm
%%SITE_PERL%%/Net/Async/HTTP/Connection.pm
%%SITE_PERL%%/Net/Async/HTTP/StallTimer.pm
%%PERL5_MAN3%%/Net::Async::HTTP.3.gz
%%PERL5_MAN3%%/Net::Async::HTTP::Connection.3.gz