core-bundle/src/Resources/contao/library/Contao/Environment.php
protected static function ssl()
	{
		$request = System::getContainer()->get('request_stack')->getCurrentRequest();

		if ($request === null)
		{
			return false;
		}

		return $request->isSecure();
	}
protected static function ssl()
	{
		$request = System::getContainer()->get('request_stack')->getCurrentRequest();

		if ($request === null)
		{
			return false;
		}

		return $request->isSecure();
	}
Return true if the current page was requested via an SSL connection

@return boolean True if SSL is enabled