fromUrl

The host and port of an http(s) URL, e.g. your API base URL. The port defaults to 443 for https and 80 for http.

Throws

if url is not an absolute http(s) URL.