src/Controller.php
protected function redirectPermanent(string $url): void
    {
        header('HTTP/1.1 301 Moved Permanently');
        header('location:' . $url);
        ($this->callback)($this);
    }
protected function redirectPermanent(string $url): void
    {
        header('HTTP/1.1 301 Moved Permanently');
        header('location:' . $url);
        ($this->callback)($this);
    }
301 永久跳转
@param string $url