set_host


Description:

public void set_host (string? host)

Sets this'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 this to a string.

http and https URIs should not have a null host.

Parameters:

this

a URI

host

the hostname or IP address, or null