‪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,
  $uri 
)

Create a new request.

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

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

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

Definition at line 52 of file RequestFactory.php.

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