Uri.setHost

bool setHost(string host)

Set or unset the host for the URI.

Parameters

hostThe new host string to set or null to unset.

Returns

true if the host was set/unset successfully.