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

Public Member Functions

ResponseInterface createResponse (int $code=200, string $reasonPhrase='')
 

Detailed Description

Note that this is not public API, use PSR-17 interfaces instead.

Definition at line 26 of file ResponseFactory.php.

Member Function Documentation

◆ createResponse()

ResponseInterface TYPO3\CMS\Core\Http\ResponseFactory::createResponse ( int  $code = 200,
string  $reasonPhrase = '' 
)

Create a new response.

Parameters
int$code‪HTTP status code; defaults to 200
string$reasonPhrase‪Reason phrase to associate with status code
Returns
‪ResponseInterface

Definition at line 35 of file ResponseFactory.php.