Uri.setScheme

Set or unset the scheme for the URI.

class Uri
bool
setScheme
(
string scheme
)

Parameters

scheme string

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

Return Value

Type: bool

true if the scheme was set/unset successfully.