function CurlFactory::invokeStats
1 call to CurlFactory::invokeStats()
- CurlFactory::finish in vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlFactory.php - Completes a cURL transaction, either returning a response promise or a rejected promise.
File
-
vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlFactory.php, line 172
Class
- CurlFactory
- Creates curl resources from a request
Namespace
GuzzleHttp\HandlerCode
private static function invokeStats(EasyHandle $easy) : void {
$curlStats = \curl_getinfo($easy->handle);
$curlStats['appconnect_time'] = \curl_getinfo($easy->handle, \CURLINFO_APPCONNECT_TIME);
$stats = new TransferStats($easy->request, $easy->response, $curlStats['total_time'], $easy->errno, $curlStats);
$easy->options['on_stats']($stats);
}