Extracts the hostname from an absolute URL string.
An absolute URL string (e.g. https://example.com:8080/path).
https://example.com:8080/path
The hostname (e.g. example.com).
example.com
Extracts the hostname from an absolute URL string.