Lines Matching defs:handles
8 * HTTP handler that uses cURL easy handles as a transport layer.
21 /** @var array Array of curl easy handles */
22 private $handles = [];
24 /** @var array Array of owned curl easy handles */
27 /** @var int Total number of idle handles to keep in cache */
33 * - factory: Optional callable factory used to create cURL handles.
36 * - max_handles: Maximum number of idle handles (defaults to 5).
42 $this->handles = $this->ownedHandles = [];
53 foreach ($this->handles as $handle) {
104 return $this->handles[$key];
110 $this->handles[$id] = $handle;
120 curl_close($this->handles[$id]);
121 unset($this->handles[$id], $this->ownedHandles[$id]);