mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 12:14:36 +00:00
Add ability to set the number of concurrent requests
This commit is contained in:
@@ -248,6 +248,7 @@ MultiCurl::complete($callback)
|
||||
MultiCurl::error($callback)
|
||||
MultiCurl::getOpt($option)
|
||||
MultiCurl::setBasicAuthentication($username, $password = '')
|
||||
MultiCurl::setConcurrency($concurrency)
|
||||
MultiCurl::setConnectTimeout($seconds)
|
||||
MultiCurl::setCookie($key, $value)
|
||||
MultiCurl::setCookieFile($cookie_file)
|
||||
|
||||
@@ -360,6 +360,17 @@ class MultiCurl
|
||||
$this->setOpt(CURLOPT_USERPWD, $username . ':' . $password);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Concurrency
|
||||
*
|
||||
* @access public
|
||||
* @param $concurrency
|
||||
*/
|
||||
public function setConcurrency($concurrency)
|
||||
{
|
||||
$this->concurrency = $concurrency;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Digest Authentication
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user