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://';
    }