Uri.setHost

bool setHost(string host) nothrow

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.