‪TYPO3CMS  11.5
TYPO3\CMS\Core\Http\RedirectResponse Class Reference
Inheritance diagram for TYPO3\CMS\Core\Http\RedirectResponse:
TYPO3\CMS\Core\Http\Response TYPO3\CMS\Core\Http\Message

Public Member Functions

 __construct ($uri, $status=302, array $headers=[])
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Http\Response
 __construct ($body='php://temp', $statusCode=200, $headers=[], string $reasonPhrase='')
int getStatusCode ()
string getReasonPhrase ()
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Http\Message
string getProtocolVersion ()
array getHeaders ()
bool hasHeader ($name)
string[] getHeader ($name)
string getHeaderLine ($name)
Psr Http Message StreamInterface getBody ()
string filter ($value)
 validateHeaderName ($name)
bool isValidHeaderValue ($value)

Additional Inherited Members

- ‪Static Public Member Functions inherited from ‪TYPO3\CMS\Core\Http\Response
static withStatus ($code, $reasonPhrase='')
- ‪Static Public Member Functions inherited from ‪TYPO3\CMS\Core\Http\Message
static withProtocolVersion ($version)
static withHeader ($name, $value)
static withAddedHeader ($name, $value)
static withoutHeader ($name)
static withBody (StreamInterface $body)
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Http\Message
 assertHeaders (array $headers)
array filterHeaders (array $originalHeaders)
bool arrayContainsOnlyStrings (array $data)
 validateHeaderValues (array $values)
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Http\Response
int $statusCode
string $reasonPhrase = ''
array $availableStatusCodes
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Http\Message
string $protocolVersion = '1.1'
array $headers = array( )
array $lowercasedHeaderNames = array( )
StreamInterface null $body

Detailed Description

A default redirect response object

Highly inspired by ZF zend-diactoros

Note that this is not public API yet.

Definition at line 27 of file RedirectResponse.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Http\RedirectResponse::__construct (   $uri,
  $status = 302,
array  $headers = [] 

Creates a redirect response object with a given URI and status code. Also sets the "Location" response header.

string | UriInterface$uri‪URI for the Location header.
int$status‪status code for the redirect; defaults to 302.
array$headers‪Additional headers to be set.

Definition at line 37 of file RedirectResponse.php.

References TYPO3\CMS\Core\Http\Message\$headers.