Adds functions to check for HTTP/HTTPS & makes `isCLI` public