Documentation

FlexibleHttpClient
in package
implements HttpClient, HttpAsyncClient uses HttpClientDecorator, HttpAsyncClientDecorator

FinalYes

A flexible http client, which implements both interface and will emulate one contract, the other, or none at all depending on the injected client contract.

Tags
author

Joel Wurtz joel.wurtz@gmail.com

Table of Contents

Interfaces

HttpClient
HttpAsyncClient
Sends a PSR-7 Request in an asynchronous way by returning a Promise.

Properties

$httpAsyncClient  : HttpAsyncClient
$httpClient  : ClientInterface

Methods

__construct()  : mixed
sendAsyncRequest()  : mixed
{@inheritdoc}
sendRequest()  : ResponseInterface
{@inheritdoc}

Properties

Methods


        
On this page

Search results