Implicitly convert URLs to strings.
The append operator (~).
Compare two URLs.
Equality checks.
The append-in-place operator (~=).
Convert a relative URL to an absolute URL.
Convert this URL to a string.
Convert this URL to a string. The string is properly formatted and usable for, eg, a web request.
The port. * This is inferred from the scheme if it isn't present in the URL itself. If the scheme is not known and the port is not present, the port will be given as 0. For some schemes, port will not be sensible -- for instance, file or chrome-extension.
* Set the port.
The fragment. In web documents, this typically refers to an anchor element. For instance, in the URL https://cnn.com/news/story/17774#header2, the fragment is "header2".
The hostname.
The password in this URL. Usually absent.
The path.
The port that was explicitly provided in the URL.
The query parameters associated with this URL.
The URL scheme. For instance, ssh, ftp, or https.
The username in this URL. Usually absent. If present, there will also be a password.
A Unique Resource Locator.
URLs can be parsed (see parseURL) and implicitly convert to strings.