README.md
1# NAME
2
3FurlX::Coro - Multiple HTTP requests with Coro
4
5# VERSION
6
7This document describes FurlX::Coro version 1.01.
8
9# SYNOPSIS
10
11 use strict;
12 use warnings;
13 use Coro;
14 use FurlX::Coro;
15
16 my @coros;
17 foreach my $url(@ARGV) {
18 push @coros, async {
19 print "fetching $url\n";
20 my $ua = FurlX::Coro->new();
21 $ua->env_proxy();
22 my $res = $ua->head($url);
23 printf "%s: %s\n", $url, $res->status_line();
24 }
25 }
26
27 $_->join for @coros;
28
29# DESCRIPTION
30
31This is a wrapper to `Furl` for asynchronous HTTP requests with `Coro`.
32
33# INTERFACE
34
35Interface is the same as `Furl`.
36
37# DEPENDENCIES
38
39Perl 5.8.1 or later.
40
41# BUGS
42
43All complex software has bugs lurking in it, and this module is no
44exception. If you find a bug please either email me, or add the bug
45to cpan-RT.
46
47# SEE ALSO
48
49[Furl](http://search.cpan.org/perldoc?Furl)
50
51[Coro](http://search.cpan.org/perldoc?Coro)
52
53# AUTHOR
54
55Fuji, Goro (gfx) <gfuji@cpan.org>
56
57# LICENSE AND COPYRIGHT
58
59Copyright (c) 2011, Fuji, Goro (gfx). All rights reserved.
60
61This library is free software; you can redistribute it and/or modify
62it under the same terms as Perl itself.
63