Guzzle5HttpHandler
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() : Promise
- Accepts a PSR-7 request and an array of options and returns a PromiseInterface
- createGuzzle5Request() : mixed
- createPsr7Response() : mixed
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 = [] ]) : Promise
Parameters
- $request : RequestInterface
- $options : array<string|int, mixed> = []
Return values
PromisecreateGuzzle5Request()
private
createGuzzle5Request(RequestInterface $request, array<string|int, mixed> $options) : mixed
Parameters
- $request : RequestInterface
- $options : array<string|int, mixed>
createPsr7Response()
private
createPsr7Response(ResponseInterface $response) : mixed
Parameters
- $response : ResponseInterface