MDL-28484 core_lib: Add function for https detection

Signed-off-by: Tony Butler <tonyjbutler@gmail.com>