Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gfx/p5-furlx-coro
Multiple HTTP requests with Coro
https://github.com/gfx/p5-furlx-coro
Last synced: 26 days ago
JSON representation
Multiple HTTP requests with Coro
- Host: GitHub
- URL: https://github.com/gfx/p5-furlx-coro
- Owner: gfx
- License: other
- Created: 2011-06-25T04:49:49.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-13T05:03:12.000Z (over 11 years ago)
- Last Synced: 2023-08-20T22:53:32.154Z (about 1 year ago)
- Language: Perl
- Homepage: http://search.cpan.org/dist/FurlX-Coro/
- Size: 129 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
FurlX::Coro - Multiple HTTP requests with Coro
# VERSION
This document describes FurlX::Coro version 1.02.
# SYNOPSIS
use 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;
# DESCRIPTION
This is a wrapper to `Furl` for asynchronous HTTP requests with `Coro`.
# INTERFACE
Interface is the same as `Furl`.
# DEPENDENCIES
Perl 5.8.1 or later.
# BUGS
All 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 ALSO
[Furl](http://search.cpan.org/perldoc?Furl)
[Coro](http://search.cpan.org/perldoc?Coro)
# AUTHOR
Fuji, Goro (gfx)
# LICENSE AND COPYRIGHT
Copyright (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.