parseURI package:HTTP

Parse the authority part of a URL.
RFC 1732, section 3.1:

//<user>:<password>@<host>:<port>/<url-path>
Some or all of the parts "<user>:<password>@", ":<password>",
":<port>", and "/<url-path>" may be excluded.