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

Public Member Functions

 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()

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

Create a new response.

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

Definition at line 34 of file ResponseFactory.php.