tld_domain_is_public_suffix


Description:


[ Version ( since = "2.40" ) ]
public bool tld_domain_is_public_suffix (string domain)

Looks whether the domain passed as argument is a public domain suffix (.

org, .com, .co.uk, etc) or not.

Prior to libsoup 2.46, this function required that domain be in UTF-8 if it was an IDN. From 2.46 on, the name can be in either UTF-8 or ASCII format.

Parameters:

domain

a domain name

Returns:

true if it is a public domain, false otherwise.


Namespace: Soup
Package: libsoup-2.4



2022 vala-language.org