Skip to content

Commit

Permalink
Update README.txt
Browse files Browse the repository at this point in the history
Examples use a class, Request, which does not exist. Replaced with 'RollingCurlRequest'.
  • Loading branch information
jwieder authored Dec 6, 2016
1 parent 3b355d9 commit 98aac04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $rc = new RollingCurl("request_callback");
$rc->window_size = 20;
foreach ($urls as $url) {
// add each request to the RollingCurl object
$request = new Request($url);
$request = new RollingCurlRequest($url);
$rc->add($request);
}
$rc->execute();
Expand All @@ -64,7 +64,7 @@ $rc->execute();
Set custom options for A SINGLE request:

$rc = new RollingCurl("request_callback");
$request = new Request($url);
$request = new RollingCurlRequest($url);
$request->options = array(CURLOPT_HEADER => true, CURLOPT_NOBODY => true);
$rc->add($request);
$rc->execute();
Expand Down Expand Up @@ -94,7 +94,7 @@ class MyInfoCollector {

function run($urls){
foreach ($urls as $url){
$request = new Request($url);
$request = new RollingCurlRequest($url);
$this->rc->add($request);
}
$this->rc->execute();
Expand All @@ -107,4 +107,4 @@ $collector->run(array(
'http://yahoo.com/'
));

$Id$
$Id$

0 comments on commit 98aac04

Please sign in to comment.