Classes/Http/Middleware/RedirectHandler.php
protected function buildRedirectResponse(UriInterface $uri, array $redirectRecord): ResponseInterface
    {
        return new RedirectResponse(
            $uri,
            (int)$redirectRecord['target_statuscode'],
            ['X-Redirect-By' => 'TYPO3 Redirect ' . $redirectRecord['uid']]
        );
    }
protected function buildRedirectResponse(UriInterface $uri, array $redirectRecord): ResponseInterface
    {
        return new RedirectResponse(
            $uri,
            (int)$redirectRecord['target_statuscode'],
            ['X-Redirect-By' => 'TYPO3 Redirect ' . $redirectRecord['uid']]
        );
    }
protected function buildRedirectResponse ( UriInterface $ uri , array $ redirectRecord ) : ResponseInterface { return new RedirectResponse ( $ uri , ( int ) $ redirectRecord [ 'target_statuscode' ] , [ 'X-Redirect-By' => 'TYPO3 Redirect ' . $ redirectRecord [ 'uid' ] ] ) ; }
Creates a PSR-7 compatible Response object

@param UriInterface $uri
@param array $redirectRecord
@return ResponseInterface
Creates a PSR - 7 compatible Response object