Open Journal Systems  3.3.0
Http\Adapter\Guzzle6\Client Class Reference
Inheritance diagram for Http\Adapter\Guzzle6\Client:
Http\Client\HttpClient Http\Client\HttpAsyncClient Psr\Http\Client\ClientInterface

Public Member Functions

 __construct (?ClientInterface $client=null)
 
 sendAsyncRequest (RequestInterface $request)
 
 sendRequest (RequestInterface $request)
 

Static Public Member Functions

static createWithConfig (array $config)
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Http\Adapter\Guzzle6\Client::__construct ( ?ClientInterface  $client = null)

Member Function Documentation

◆ createWithConfig()

static Http\Adapter\Guzzle6\Client::createWithConfig ( array  $config)
static

Factory method to create the Guzzle 6 adapter with custom Guzzle configuration.

Definition at line 43 of file vendor/php-http/guzzle6-adapter/src/Client.php.

◆ sendAsyncRequest()

Http\Adapter\Guzzle6\Client::sendAsyncRequest ( RequestInterface  $request)

{Sends a PSR-7 request in an asynchronous way.Exceptions related to processing the request are available from the returned Promise.

Returns
Promise Resolves a PSR-7 Response or fails with an Http\Client\Exception.
Exceptions
}

Implements Http\Client\HttpAsyncClient.

Definition at line 61 of file vendor/php-http/guzzle6-adapter/src/Client.php.

Referenced by Http\Adapter\Guzzle6\Client\sendRequest().

◆ sendRequest()

Http\Adapter\Guzzle6\Client::sendRequest ( RequestInterface  $request)

{Sends a PSR-7 request and returns a PSR-7 response.

Parameters
RequestInterface$request
Returns
ResponseInterface
Exceptions
}

Implements Psr\Http\Client\ClientInterface.

Definition at line 51 of file vendor/php-http/guzzle6-adapter/src/Client.php.

References Http\Adapter\Guzzle6\Client\sendAsyncRequest().


The documentation for this class was generated from the following file: