get_host


Description:

[ Version ( since = "2.66" ) ]
public unowned string? get_host ()

Gets this's host.

This will never have `%`-encoded characters, unless it is non-UTF-8 (which can only be the case if this was created with g_uri_flags_non_dns).

If this contained an IPv6 address literal, this value will be just that address, without the brackets around it that are necessary in the string form of the URI. Note that in this case there may also be a scope ID attached to the address. Eg, `fe80::1234%``em1` (or `fe80::1234%``25em1` if the string is still encoded).

Parameters:

this

a Uri

Returns:

this's host.