ResponseFactory

readonly class \TYPO3\CMS\Core\Http\ResponseFactory

Implements
ResponseFactoryInterface

Attributes

#[AsAlias]
\Psr\Http\Message\ResponseFactoryInterface::class
$public: true

Table of Contents

Interfaces

ResponseFactoryInterface

Methods

createResponse()  : ResponseInterface
Create a new response.

Methods

createResponse()

Create a new response.

public createResponse([int $code = 200 ][, string $reasonPhrase = '' ]) : ResponseInterface

Parameters

$code : int = 200

HTTP status code; defaults to 200

$reasonPhrase : string = ''

Reason phrase to associate with status code

Return values

ResponseInterface
On this page