Lines Matching refs:entry
84 $entry = [
96 $entry['deferred']->promise(),
103 $this->addRequest($entry);
147 private function addRequest(array &$entry)
149 $id = (int) $entry['handle'];
150 $this->handles[$id] = $entry;
154 if (isset($entry['request']['client']['delay'])) {
155 $this->delays[$id] = microtime(true) + ($entry['request']['client']['delay'] / 1000);
156 } elseif (empty($entry['request']['future'])) {
157 curl_multi_add_handle($this->_mh, $entry['handle']);
159 curl_multi_add_handle($this->_mh, $entry['handle']);
161 if ($entry['request']['future'] !== 'lazy') {
229 $entry = $this->handles[$id];
230 $entry['response']['transfer_stats'] = curl_getinfo($done['handle']);
233 $entry['response']['curl']['errno'] = $done['result'];
234 $entry['response']['curl']['error'] = curl_error($done['handle']);
239 $entry['request'],
240 $entry['response'],
241 $entry['headers'],
242 $entry['body']
246 $entry['deferred']->resolve($result);