[This is preliminary documentation and is subject to change.]
Thetype exposes the following members.
Host component. This may be a hostname, an IPv4 address or an IPv6 literal surrounded by square brackets (e.g., "[2001:db8::1]").
Origin contains just the scheme, host, and port from a URL. Equivalent to clearing any username and password, replacing the path with a slash, and clearing everything after that. This value will be empty for non-standard URLs.
Path component including the first slash following the host.
Port number component.
Query string component (i.e., everything following the '?').
Scheme component not including the colon (e.g., "http").
The complete URL specification.
User name component.