Uri.setPathString

bool setPathString(string path)

Sets or unsets the path in the URI.

Parameters

pathThe new percent encoded path to set with path segments separated by '/', or use null to unset the path.

Returns

true if the path was set successfully.