src/Router/Response.php
public static function redirect($url = '', $status = 301, $headers = [])
    {
        $Response = new Response();
        $Response->status($status);

        if (!empty($headers)) {
            $Response->headers($headers);
        }

        $Response->headers([
            'Location' => (new Router())->makeUrl($url),
        ]);

        return $Response;
    }
public static function redirect($url = '', $status = 301, $headers = [])
    {
        $Response = new Response();
        $Response->status($status);

        if (!empty($headers)) {
            $Response->headers($headers);
        }

        $Response->headers([
            'Location' => (new Router())->makeUrl($url),
        ]);

        return $Response;
    }
Address redirection.

@param string $url
@param int    $status
@param array  $headers

@return Response|object