Guzzle6HttpHandler
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- __invoke() : ResponseInterface
- Accepts a PSR-7 request and an array of options and returns a PSR-7 response.
- async() : PromiseInterface
- Accepts a PSR-7 request and an array of options and returns a PromiseInterface
Properties
$client
private
ClientInterface
$client
Methods
__construct()
public
__construct(ClientInterface $client) : mixed
Parameters
- $client : ClientInterface
__invoke()
Accepts a PSR-7 request and an array of options and returns a PSR-7 response.
public
__invoke(RequestInterface $request[, array<string|int, mixed> $options = [] ]) : ResponseInterface
Parameters
- $request : RequestInterface
- $options : array<string|int, mixed> = []
Return values
ResponseInterfaceasync()
Accepts a PSR-7 request and an array of options and returns a PromiseInterface
public
async(RequestInterface $request[, array<string|int, mixed> $options = [] ]) : PromiseInterface
Parameters
- $request : RequestInterface
- $options : array<string|int, mixed> = []