You are here

private function StreamHandler::invokeStats in Auth0 Single Sign On 8.2

2 calls to StreamHandler::invokeStats()
StreamHandler::createResponse in vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php
StreamHandler::__invoke in vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php
Sends an HTTP request.

File

vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php, line 75

Class

StreamHandler
HTTP handler that uses PHP's HTTP stream wrapper.

Namespace

GuzzleHttp\Handler

Code

private function invokeStats(array $options, RequestInterface $request, $startTime, ResponseInterface $response = null, $error = null) {
  if (isset($options['on_stats'])) {
    $stats = new TransferStats($request, $response, Utils::currentTime() - $startTime, $error, []);
    call_user_func($options['on_stats'], $stats);
  }
}