NAME
LWP::Concurrent -- Provides easy interface to making parallel/concurrent LWP requests
SYNOPSIS
my $lwpc = LWP::Concurrent->new()
my $responses = $lwpc->get_concurrent( urls=>[ "http://example.com/url1", "http://example.com/url2" ] );
DESCRIPTION
Makes concurrent LWP requests
METHODS
- $lwpc = LWP::Concurrent->new( ); # or =item $lwpc = LWP::Concurrent->new( idlesleep => 0.05, timeout => 0.4 );
-
returns a new LWP::Concurrent object.
- $lwpc->timeout() =item $lwpc->idlesleep()
-
Gets or sets the timeout or idlesleep params.
- $results = $lwpc->get_concurrent( urls=> \@urls )
-
performs a GET on the specified urls, returning a hashref where the keys are the response numbers, and the values are the urls and their responses
- $results = $lwpc->operate_concurrently( requests => \@request_objects )
-
performs actions on HTTP servers as specified by the passed request objects, returning a hashref where the keys are the response numbers, and the values are the urls and their responses
TO DO
If you want such a section.
BUGS
None
COPYRIGHT
Copyright (c) 2012 Josh Rabinowitz, All Rights Reserved.
AUTHORS
Josh Rabinowitz