![]() |
![]()
| ![]() |
![]()
NAMEFurlX::Coro - Multiple HTTP requests with Coro VERSIONThis document describes FurlX::Coro version 1.02. SYNOPSISuse strict; use warnings; use Coro; use FurlX::Coro; my @coros; foreach my $url(@ARGV) { push @coros, async { print "fetching $url\n"; my $ua = FurlX::Coro->new(); $ua->env_proxy(); my $res = $ua->head($url); printf "%s: %s\n", $url, $res->status_line(); } } $_->join for @coros; DESCRIPTIONThis is a wrapper to "Furl" for asynchronous HTTP requests with "Coro". INTERFACEInterface is the same as "Furl". DEPENDENCIESPerl 5.8.1 or later. BUGSAll complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT. SEE ALSOFurl Coro AUTHORFuji, Goro (gfx) <gfuji@cpan.org> LICENSE AND COPYRIGHTCopyright (c) 2011, Fuji, Goro (gfx). All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|