GuzzleHandler
in package
A request handler that sends PSR-7-compatible requests with Guzzle 5.
The handler accepts a PSR-7 Request object and an array of transfer options and returns a Guzzle 6 Promise. The promise is either resolved with a PSR-7 Response object or rejected with an array of error data.
Tags
Table of Contents
Methods
- __construct() : mixed
- __invoke() : Promise|PromiseInterface
Methods
__construct()
public
__construct([ClientInterface $client = null ]) : mixed
Parameters
- $client : ClientInterface = null
__invoke()
public
__invoke(RequestInterface $request[, array<string|int, mixed> $options = [] ]) : Promise|PromiseInterface
Parameters
- $request : RequestInterface
- $options : array<string|int, mixed> = []