Documentation

PluginClient
in package
implements HttpClient, HttpAsyncClient

FinalYes

The client managing plugins and providing a decorator around HTTP Clients.

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

$client  : HttpAsyncClient
An HTTP async client.
$options  : array<string|int, mixed>
A list of options.
$plugins  : array<string|int, Plugin>
The plugin chain.

Methods

__construct()  : mixed
sendAsyncRequest()  : Promise
Sends a PSR-7 request in an asynchronous way.
sendRequest()  : ResponseInterface
Sends a PSR-7 request and returns a PSR-7 response.
configure()  : array<string|int, mixed>
Configure the plugin client.
createPluginChain()  : callable(RequestInterface): Promise
Create the plugin chain.

Properties

$options

A list of options.

private array<string|int, mixed> $options

Methods

configure()

Configure the plugin client.

private configure([array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Parameters
$options : array<string|int, mixed> = []
Return values
array<string|int, mixed>

        
On this page

Search results