private function MockHandler::invokeStats in Auth0 Single Sign On 8.2
1 call to MockHandler::invokeStats()
- MockHandler::__invoke in vendor/
guzzlehttp/ guzzle/ src/ Handler/ MockHandler.php
File
- vendor/
guzzlehttp/ guzzle/ src/ Handler/ MockHandler.php, line 183
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'])) {
$transferTime = isset($options['transfer_time']) ? $options['transfer_time'] : 0;
$stats = new TransferStats($request, $response, $transferTime, $reason);
call_user_func($options['on_stats'], $stats);
}
}