$handler
$handler
Creates a composed Guzzle handler function by stacking middlewares on top of an HTTP handler function.
create(?callable $handler = null) : self
Creates a default handler stack that can be used by clients.
The returned handler will wrap the provided handler or use the most appropriate default handler for your system. The returned HandlerStack has support for cookies, redirects, HTTP error exceptions, and preparing a body before sending.
The returned handler stack can be passed to a client in the "handler" option.
?callable | $handler |
__invoke(\Psr\Http\Message\RequestInterface $request, array $options) : \Psr\Http\Message\ResponseInterface|\GuzzleHttp\Promise\PromiseInterface
Invokes the handler stack as a composed handler
\Psr\Http\Message\RequestInterface | $request | |
array | $options |