URL.opOpAssign

The append-in-place operator (~=).

The append operator for URLs adds a path element to this URL. It only adds new path elements (or sequences of path elements).

Don't worry about path separators; whether you include them or not, it will just work.

struct URL
opOpAssign
(
string op : "~"
)

Examples

auto random = "http://testdata.org/random".parseURL;
random ~= "int";
writeln(random);  // prints "http://testdata.org/random/int"

Meta