BSD Ports

www/p5-HTTP-Async 0.33 DragonFly

Process multiple HTTP requests in parallel without blocking

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
perl5, www
Package size
20.7 KiB, 48.4 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlywww/p5-HTTP-Async0.33
FreeBSDwww/p5-HTTP-Async0.33
OpenBSDwww/p5-HTTP-Async0.33p0
NetBSDwww/p5-HTTP-Async0.33nb10
HardenedBSDwww/p5-HTTP-Async0.33
GhostBSDwww/p5-HTTP-Async0.33

Install

Binary package:

pkg install p5-HTTP-Async

From DPorts:

cd /usr/dports/www/p5-HTTP-Async && make install clean

Dependencies

Run dependencies 5