parseURI -package:uri-bytestring
Turn a string containing a URI into a
URI. Returns
Nothing if the string is not a valid URI; (an absolute URI with
optional fragment identifier).
NOTE: this is different from the previous network.URI, whose
parseURI function works like
parseURIReference in this
module.
Parse a URI reference to a
URI value. Returns
Nothing if
the string is not a valid URI reference. (an absolute or relative URI
with optional fragment identifier).
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.
parse a URI reference, in case of a failure, try to escape unescaped
chars, convert backslashes to slashes for windows paths, and try
parsing again