You are here

private static function CurlFactory::invokeStats in Auth0 Single Sign On 8.2

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 120

Class

CurlFactory
Creates curl resources from a request

Namespace

GuzzleHttp\Handler

Code

private static function invokeStats(EasyHandle $easy) {
  $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);
  call_user_func($easy->options['on_stats'], $stats);
}