EmulatedHttpClient
in package
implements
HttpClient, HttpAsyncClient
uses
HttpAsyncClientDecorator, HttpClientEmulator
FinalYes
Emulates a synchronous HTTP client with the help of an asynchronous 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
$httpAsyncClient
protected
HttpAsyncClient
$httpAsyncClient
Methods
__construct()
public
__construct(HttpAsyncClient $httpAsyncClient) : mixed
Parameters
- $httpAsyncClient : HttpAsyncClient
sendAsyncRequest()
{@inheritdoc}
public
sendAsyncRequest(RequestInterface $request) : mixed
Parameters
- $request : RequestInterface
Tags
sendRequest()
{@inheritdoc}
public
sendRequest(RequestInterface $request) : ResponseInterface
Parameters
- $request : RequestInterface