Use the file
and parse
factory functions to create new Uri
objects.
Authority is the www.msft.com
part of http://www.msft.com/some/path?query#fragment
.
The part between the first double slashes and the next slash.
Fragment is the fragment
part of http://www.msft.com/some/path?query#fragment
.
The string representing the corresponding file system path of this Uri.
Will handle UNC paths and normalize windows drive letters to lower-case. Also uses the platform specific path separator. Will not validate the path for invalid characters and semantics. Will not look at the scheme of this Uri.
Path is the /some/path
part of http://www.msft.com/some/path?query#fragment
.
Query is the query
part of http://www.msft.com/some/path?query#fragment
.
Scheme is the http
part of http://www.msft.com/some/path?query#fragment
.
The part before the first colon.
Returns a JSON representation of this Uri.
An object.
Returns a string representation of this Uri. The representation and normalization of a URI depends on the scheme. The resulting string can be safely used with Uri.parse.
Do not percentage-encode the result, defaults to false
. Note that
the #
and ?
characters occuring in the path will always be encoded.
A string representation of this Uri.
Derive a new Uri from this Uri.
let file = Uri.parse('before:some/file/path');
let other = file.with({ scheme: 'after' });
assert.ok(other.toString() === 'after:some/file/path');
An object that describes a change to this Uri. To unset components use null
or
the empty string.
A new Uri that reflects the given change. Will return this
Uri if the change
is not changing anything.
Create an URI from a string. Will throw if the given value is not valid.
The string value of an Uri.
A new Uri instance.
A universal resource identifier representing either a file on disk or another resource, like untitled resources.