HttpAsyncClient
in
Sends a PSR-7 Request in an asynchronous way by returning a Promise.
Tags
Table of Contents
Methods
- sendAsyncRequest() : Promise
- Sends a PSR-7 request in an asynchronous way.
Methods
sendAsyncRequest()
Sends a PSR-7 request in an asynchronous way.
public
sendAsyncRequest(RequestInterface $request) : Promise
Exceptions related to processing the request are available from the returned Promise.
Parameters
- $request : RequestInterface
Tags
Return values
Promise —resolves a PSR-7 Response or fails with an Http\Client\Exception