You are here

public function HandlerStack::__invoke in Auth0 Single Sign On 8.2

Invokes the handler stack as a composed handler

Parameters

RequestInterface $request:

array $options:

Return value

ResponseInterface|PromiseInterface

File

vendor/guzzlehttp/guzzle/src/HandlerStack.php, line 67

Class

HandlerStack
Creates a composed Guzzle handler function by stacking middlewares on top of an HTTP handler function.

Namespace

GuzzleHttp

Code

public function __invoke(RequestInterface $request, array $options) {
  $handler = $this
    ->resolve();
  return $handler($request, $options);
}