You are here

private function MockHandler::invokeStats in Lockr 7.3

1 call to MockHandler::invokeStats()
MockHandler::__invoke in vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php

File

vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php, line 178

Class

MockHandler
Handler that returns responses or throw exceptions from a queue.

Namespace

GuzzleHttp\Handler

Code

private function invokeStats(RequestInterface $request, array $options, ResponseInterface $response = null, $reason = null) {
  if (isset($options['on_stats'])) {
    $stats = new TransferStats($request, $response, 0, $reason);
    call_user_func($options['on_stats'], $stats);
  }
}