Change record status: 
Project: 
Introduced in branch: 
7.x
Introduced in version: 
7.54
Description: 

Drupal determines whether it is serving an HTTPS request (and initializes the $is_https global variable) right after including the settings.php file. However that logic can be also useful while initializing settings, for instance when crafting base URLs. For this purpose the related logic has been encapsulated in a new API function: drupal_is_https(). This returns the same result as $GLOBALS['is_https'] but can be reliably executed at any point of the execution flow.

Impacts: 
Module developers