Jelix\Routing\ClientRequest::getProtocol PHP 메소드

getProtocol() 공개 메소드

return the protocol
부터: 1.2
public getProtocol ( ) : string
리턴 string http:// or https://
    function getProtocol()
    {
        return isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && $_SERVER['HTTPS'] != 'off' ? 'https://' : 'http://';
    }