1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add p5-HTTP-Async 0.07, process multiple HTTP requests in parallel

without blocking.

PR:		ports/110469
Submitted by:	chinsan
This commit is contained in:
Rong-En Fan 2007-03-18 17:31:39 +00:00
parent efb3914359
commit 3b4110d8ff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=187665
5 changed files with 52 additions and 0 deletions

View File

@ -701,6 +701,7 @@
SUBDIR += p5-HTML-WikiConverter-UseMod
SUBDIR += p5-HTML-WikiConverter-WakkaWiki
SUBDIR += p5-HTML-WikiConverter-WikkaWiki
SUBDIR += p5-HTTP-Async
SUBDIR += p5-HTTP-Body
SUBDIR += p5-HTTP-BrowserDetect
SUBDIR += p5-HTTP-Cache-Transparent

View File

@ -0,0 +1,29 @@
# New ports collection makefile for: p5-HTTP-Async
# Date created: 2007/02/14
# Whom: chinsan
#
# $FreeBSD$
#
PORTNAME= HTTP-Async
PORTVERSION= 0.07
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= ../../authors/id/E/EV/EVDB
PKGNAMEPREFIX= p5-
MAINTAINER= chinsan@FreeBSD.org
COMMENT= Process multiple HTTP requests in parallel without blocking
BUILD_DEPENDS= p5-Module-Build>=0:${PORTSDIR}/devel/p5-Module-Build \
p5-URI>=0:${PORTSDIR}/net/p5-URI \
p5-HTTP-Server-Simple>=0:${PORTSDIR}/www/p5-HTTP-Server-Simple \
p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
p5-Test-HTTP-Server-Simple>=0:${PORTSDIR}/www/p5-Test-HTTP-Server-Simple
RUN_DEPENDS= ${BUILD_DEPENDS}
MAN3= HTTP::Async.3 HTTP::Async::Polite.3
PERL_CONFIGURE= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (HTTP-Async-0.07.tar.gz) = d18d2c705ea8a2b1e3d40cb65ee73fbd
SHA256 (HTTP-Async-0.07.tar.gz) = 8bbafdd974f17e812f69fa02f1cf598c5728c62e6cd4d23ec098f8705053c277
SIZE (HTTP-Async-0.07.tar.gz) = 16855

View File

@ -0,0 +1,12 @@
Although using the conventional LWP::UserAgent is fast and easy it does have
some drawbacks - the code execution blocks until the request has been
completed and it is only possible to process one request at a time.
HTTP::Async attempts to address these limitations.
It gives you a 'Async' object that you can add requests to, and then get the
requests off as they finish. The actual sending and receiving of the
requests is abstracted. As soon as you add a request it is transmitted, if
there are too many requests in progress at the moment they are queued. There
is no concept of starting or stopping - it runs continuously.
WWW: http://search.cpan.org/dist/HTTP-Async/

View File

@ -0,0 +1,7 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP/Async/.packlist
%%SITE_PERL%%/HTTP/Async.pm
%%SITE_PERL%%/HTTP/Async/Polite.pm
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP/Async
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP
@dirrmtry %%SITE_PERL%%/HTTP/Async
@dirrmtry %%SITE_PERL%%/HTTP