src/Leevel/Http/Request.php
public function isSecure(): bool
    {
        if (in_array($this->server->get('HTTPS'), ['1', 'on'], true)) {
            return true;
        }

        if ('443' === $this->server->get('SERVER_PORT')) {
            return true;
        }

        return false;
    }
public function isSecure(): bool
    {
        if (in_array($this->server->get('HTTPS'), ['1', 'on'], true)) {
            return true;
        }

        if ('443' === $this->server->get('SERVER_PORT')) {
            return true;
        }

        return false;
    }
是否启用 https.

@return bool