Airship\Engine\AutoPilot::isHTTPSConnection PHP 메소드

isHTTPSConnection() 공개 정적인 메소드

Is this user currently connected over HTTPS?
public static isHTTPSConnection ( string $scheme = '' ) : boolean
$scheme string
리턴 boolean
    public static function isHTTPSConnection(string $scheme = '') : bool
    {
        if (empty($scheme)) {
            $scheme = $_SERVER['HTTPS'] ?? false;
        }
        if (!empty($scheme)) {
            return $scheme !== 'off';
        }
        return false;
    }