private function MockHandler::invokeStats in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php \GuzzleHttp\Handler\MockHandler::invokeStats()
1 call to MockHandler::invokeStats()
- MockHandler::__invoke in vendor/
guzzlehttp/ guzzle/ src/ Handler/ MockHandler.php
File
- vendor/
guzzlehttp/ guzzle/ src/ Handler/ MockHandler.php, line 152
Class
- MockHandler
- Handler that returns responses or throw exceptions from a queue.
Namespace
GuzzleHttp\HandlerCode
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);
}
}