Gets the host name. If it is an IPv6 numeric address, the zone id will not be part of it but
can be retrieved separately using url:GetZoneID(). IPv6 numerical addresses are returned
within brackets ([]).
The optional flags parameter can be a combination of flags as described in
the documentation of the hurl.URL() function. See hurl.URL for details.