LWP::Protocol::Coro::http - Asynchronous HTTP and HTTPS backend for LWP
Version 1.0.1
# Make HTTP and HTTPS requests Coro-friendly. use LWP::Protocol::Coro::http; # Or LWP::UserAgent, WWW::Mechanize, etc use LWP::Simple qw( get ); # A reason to want LWP parallelised. use Coro qw( async ); for my $url (@urls) { async { process( get($url) ) }; }
Coro is a cooperating multitasking system. This means it requires some amount of cooperation on the part of user code in order to provide parallelism.
This module makes LWP more cooperative by plugging in an HTTP and HTTPS protocol implementor powered by AnyEvent::HTTP.
All LWP features and configuration options should still be available when using this module.
Coro
An excellent cooperative multitasking library.
AnyEvent::HTTP
Powers this module.
LWP::Simple
Affected by this module.
LWP::UserAgent
WWW::Mechanize
Coro::LWP
An alternative to this module. Intrusive, causing problems in unrelated code. Doesn't support HTTPS. Supports FTP and NTTP.
AnyEvent::HTTP::LWP::UserAgent
An alternative to this module. Doesn't help code that uses LWP::Simple or LWP::UserAgent.
I haven't gotten around to implementing proxy support.
Please report any bugs or feature requests to bug-LWP-Protocol-Coro-http at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LWP-Protocol-Coro-http. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-LWP-Protocol-Coro-http at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc LWP::Protocol::Coro::http
You can also look for information at:
Search CPAN
http://search.cpan.org/dist/LWP-Protocol-Coro-http
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=LWP-Protocol-Coro-http
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/LWP-Protocol-Coro-http
CPAN Ratings
http://cpanratings.perl.org/d/LWP-Protocol-Coro-http
Eric Brine, <ikegami@adaelis.com>
<ikegami@adaelis.com>
No rights reserved.
The author has dedicated the work to the Commons by waiving all of his or her rights to the work worldwide under copyright law and all related or neighboring legal rights he or she had in the work, to the extent allowable by law.
Works under CC0 do not require attribution. When citing the work, you should not imply endorsement by the author.
To install LWP::Protocol::Coro::http, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LWP::Protocol::Coro::http
CPAN shell
perl -MCPAN -e shell install LWP::Protocol::Coro::http
For more information on module installation, please visit the detailed CPAN module installation guide.