src/Valkyrja/Valkyrja.php
public function redirectTo(string $uri = null, int $statusCode = StatusCode::FOUND, array $headers = []): void
    {
        throw new HttpRedirectException($statusCode, $uri, null, $headers, 0);
    }
public function redirectTo(string $uri = null, int $statusCode = StatusCode::FOUND, array $headers = []): void
    {
        throw new HttpRedirectException($statusCode, $uri, null, $headers, 0);
    }
Redirect to a given uri, and abort the application.

@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

@throws \Valkyrja\Http\Exceptions\HttpRedirectException

@return void