src/Valkyrja/Http/NativeRedirectResponse.php
public function setUri(string $uri): RedirectResponse
    {
        // Set the uri
        $this->uri = $uri;

        // Set the location header for the redirect
        $this->headers()->set('Location', $this->uri);

        return $this;
    }
public function setUri(string $uri): RedirectResponse
    {
        // Set the uri
        $this->uri = $uri;

        // Set the location header for the redirect
        $this->headers()->set('Location', $this->uri);

        return $this;
    }
Set the uri.

@param string $uri The uri

@return \Valkyrja\Http\RedirectResponse