private function CurlMultiHandler::addRequest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php \GuzzleHttp\Handler\CurlMultiHandler::addRequest()
1 call to CurlMultiHandler::addRequest()
- CurlMultiHandler::__invoke in vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlMultiHandler.php
File
- vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlMultiHandler.php, line 127
Class
- CurlMultiHandler
- Returns an asynchronous response using curl_multi_* functions.
Namespace
GuzzleHttp\HandlerCode
private function addRequest(array $entry) {
$easy = $entry['easy'];
$id = (int) $easy->handle;
$this->handles[$id] = $entry;
if (empty($easy->options['delay'])) {
curl_multi_add_handle($this->_mh, $easy->handle);
}
else {
$this->delays[$id] = microtime(true) + $easy->options['delay'] / 1000;
}
}