Uri.setScheme

bool setScheme(string scheme)

Set or unset the scheme for the URI.

Parameters

schemeThe new scheme to set or null to unset the scheme.

Returns

true if the scheme was set/unset successfully.