You are here

private static function CurlFactory::invokeStats in Lockr 7.3

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 117

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);
}