You are here

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

File

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

Class

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

Namespace

GuzzleHttp\Handler

Code

private function add_progress(RequestInterface $request, &$options, $value, &$params) {
  $this
    ->addNotification($params, function ($code, $a, $b, $c, $transferred, $total) use ($value) {
    if ($code == STREAM_NOTIFY_PROGRESS) {
      $value($total, $transferred, null, null);
    }
  });
}