‪TYPO3CMS  10.4
TYPO3\CMS\Core\Http\Client Class Reference
Inheritance diagram for TYPO3\CMS\Core\Http\Client:

Public Member Functions

 __construct (GuzzleClientInterface $guzzle)
 
ResponseInterface sendRequest (RequestInterface $request)
 

Private Attributes

GuzzleClientInterface $guzzle
 

Detailed Description

PSR-18 adapter for Guzzle\ClientInterface

Will be removed once GuzzleHTTP implements PSR-18.

Definition at line 41 of file Client.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Http\Client::__construct ( GuzzleClientInterface  $guzzle)

Definition at line 47 of file Client.php.

References TYPO3\CMS\Core\Http\Client\$guzzle.

Member Function Documentation

◆ sendRequest()

ResponseInterface TYPO3\CMS\Core\Http\Client::sendRequest ( RequestInterface  $request)

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

Parameters
RequestInterface$request
Returns
‪ResponseInterface
Exceptions
ClientExceptionInterface‪If an error happens while processing the request.
NetworkExceptionInterface‪If the request cannot be sent due to a network failure of any kind
RequestExceptionInterface‪If the request message is not a well-formed HTTP request

Definition at line 61 of file Client.php.

Member Data Documentation

◆ $guzzle

GuzzleClientInterface TYPO3\CMS\Core\Http\Client::$guzzle
private

Definition at line 45 of file Client.php.

Referenced by TYPO3\CMS\Core\Http\Client\__construct().