uriBuildNormalized

Appends the path to the uri, potentially replacing the whole thing if the path is absolute. Cleans ./ and ../ sequences using uriNormalize.

uriBuildNormalized
(,
scope const(char)[] path
)

Examples

assert(uriBuildNormalized("file:///foo/bar", "baz") == "file:///foo/bar/baz");
assert(uriBuildNormalized("file:///foo/bar", "../baz") == "file:///foo/baz");
version (Windows)
	assert(uriBuildNormalized("file:///foo/bar", `c:\home\baz`) == "file:///c%3A/home/baz");
else
	assert(uriBuildNormalized("file:///foo/bar", "/home/baz") == "file:///home/baz");

Meta