You are here

private static function CurlFactory::invokeStats in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php \GuzzleHttp\Handler\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 118

Class

CurlFactory
Creates curl resources from a request

Namespace

GuzzleHttp\Handler

Code

private static function invokeStats(EasyHandle $easy) {
  $curlStats = curl_getinfo($easy->handle);
  $stats = new TransferStats($easy->request, $easy->response, $curlStats['total_time'], $easy->errno, $curlStats);
  call_user_func($easy->options['on_stats'], $stats);
}