URI.setHost

Sets @uri's host to @host.

If @host is an IPv6 IP address, it should not include the brackets required by the URI syntax; they will be added automatically when converting @uri to a string.

http and https URIs should not have a %NULL @host.

class URI
void
setHost
(
string host
)

Parameters

host string

the hostname or IP address, or %NULL

Meta