‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Http\RequestFactory Class Reference
Inheritance diagram for TYPO3\CMS\Core\Http\RequestFactory:

Public Member Functions

 __construct (private readonly GuzzleClientFactory $guzzleFactory,)
 createRequest (string $method, $uri)
 request (string $uri, string $method='GET', array $options=[])

Detailed Description

Front-end for sending requests, using PSR-7.

Definition at line 29 of file RequestFactory.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Http\RequestFactory::__construct ( private readonly GuzzleClientFactory  $guzzleFactory)

Definition at line 31 of file RequestFactory.php.

Member Function Documentation

◆ createRequest()

TYPO3\CMS\Core\Http\RequestFactory::createRequest ( string  $method,

Create a new request.

string$method‪The HTTP method associated with the request.
UriInterface | string$uri‪The URI associated with the request.

Definition at line 41 of file RequestFactory.php.

◆ request()

TYPO3\CMS\Core\Http\RequestFactory::request ( string  $uri,
string  $method = 'GET',
array  $options = [] 

Create a Guzzle request object with our custom implementation

string$uri‪the URI to request
string$method‪the HTTP method (defaults to GET)
array$options‪custom options for this request

Definition at line 53 of file RequestFactory.php.