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

Public Member Functions

RequestInterface createRequest (string $method, $uri)
ResponseInterface request (string $uri, string $method='GET', array $options=[])

Detailed Description

Class RequestFactory to create Request objects Returns PSR-7 Request objects

Definition at line 30 of file RequestFactory.php.

Member Function Documentation

◆ createRequest()

RequestInterface 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 39 of file RequestFactory.php.

◆ request()

ResponseInterface 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 52 of file RequestFactory.php.

References TYPO3\CMS\Core\Http\Client\GuzzleClientFactory\getClient().