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.

Meta