Uri.setHost

Set or unset the host for the URI.

class Uri
bool
setHost
(
string host
)

Parameters

host string

The new host string to set or null to unset.

Return Value

Type: bool

true if the host was set/unset successfully.