EmulatedHttpAsyncClient
in package
implements
HttpClient, HttpAsyncClient
uses
HttpAsyncClientEmulator, HttpClientDecorator
FinalYes
Emulates an async HTTP client with the help of a synchronous client.
Tags
Table of Contents
Interfaces
- HttpClient
- HttpAsyncClient
- Sends a PSR-7 Request in an asynchronous way by returning a Promise.
Properties
Methods
- __construct() : mixed
- sendAsyncRequest() : mixed
- {@inheritdoc}
- sendRequest() : ResponseInterface
- {@inheritdoc}
Properties
$httpClient
protected
ClientInterface
$httpClient
Methods
__construct()
public
__construct(ClientInterface $httpClient) : mixed
Parameters
- $httpClient : ClientInterface
sendAsyncRequest()
{@inheritdoc}
public
sendAsyncRequest(RequestInterface $request) : mixed
Parameters
- $request : RequestInterface
Tags
sendRequest()
{@inheritdoc}
public
abstract sendRequest(RequestInterface $request) : ResponseInterface
Parameters
- $request : RequestInterface