private invokeStats ( Psr\Http\Message\RequestInterface $request, array $options, Psr\Http\Message\ResponseInterface $response = null, $reason = null ) | ||
$request | Psr\Http\Message\RequestInterface | |
$options | array | |
$response | Psr\Http\Message\ResponseInterface |
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);
}
}