Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
FurlX::Coro(3)	      User Contributed Perl Documentation	FurlX::Coro(3)

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

       Coro

AUTHOR
       Fuji, Goro (gfx)	<gfuji@cpan.org>

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.

perl v5.32.0			  2020-08-30			FurlX::Coro(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | INTERFACE | DEPENDENCIES | BUGS | SEE ALSO | AUTHOR | LICENSE AND COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=FurlX::Coro&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help