Normalizes a host or URL: a value containing :// is used as given, a bare host[:port] becomes https://host[:port]; trailing slashes are removed. Blank input gives undefined.
://
host[:port]
https://host[:port]
undefined
Normalizes a host or URL: a value containing
://is used as given, a barehost[:port]becomeshttps://host[:port]; trailing slashes are removed. Blank input givesundefined.