src/Valkyrja/Http/NativeResponseBuilder.php
public function redirect(
        string $uri = '/',
        int $statusCode = StatusCode::FOUND,
        array $headers = []
    ): RedirectResponse {
        return $this->app->redirect($uri, $statusCode, $headers);
    }
public function redirect(
        string $uri = '/',
        int $statusCode = StatusCode::FOUND,
        array $headers = []
    ): RedirectResponse {
        return $this->app->redirect($uri, $statusCode, $headers);
    }
Redirect to response builder.

@param string $uri        [optional] The uri to redirect to
@param int    $statusCode [optional] The response status code
@param array  $headers    [optional] An array of response headers

@return \Valkyrja\Http\RedirectResponse