public function setRedirectUri(UriInterface $uri, int $statusCode = 303): void
    {
        $this->redirectUri = $uri;
        $this->statusCode = $statusCode;
        // TODO: This can be removed after the full changes are done for next major.
        $this->headers->set('Location', (string)$uri, true);
        $this->setStatusCode($statusCode);
    }
public function setRedirectUri(UriInterface $uri, int $statusCode = 303): void
    {
        $this->redirectUri = $uri;
        $this->statusCode = $statusCode;
        // TODO: This can be removed after the full changes are done for next major.
        $this->headers->set('Location', (string)$uri, true);
        $this->setStatusCode($statusCode);
    }
public function setRedirectUri ( UriInterface $ uri , int $ statusCode = 303 ) : void { $ this -> redirectUri = $ uri ; $ this -> statusCode = $ statusCode ; // TODO: This can be removed after the full changes are done for next major. $ this -> headers -> set ( 'Location' , ( string ) $ uri , true ) ; $ this -> setStatusCode ( $ statusCode ) ; }
Set a redirect URI and according status for this response.

@param UriInterface $uri
@param int $statusCode
@return void
@api
Set a redirect URI and according status for this response .