Jelix\Routing\ClientRequest::getProtocol PHP Method

getProtocol() public method

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