Uri.setPath

bool setPath(string path = null)

Sets or unsets the path in the URI.

Parameters

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

Returns

true if the path was set successfully.