Uri.isValid

bool isValid(string uriString, glib.types.UriFlags flags)

Parses uri_string according to flags, to determine whether it is a valid

absolute URI, i.e. it does not need to be resolved

relative to another URI using [glib.uri.Uri.parseRelative].

If it’s not a valid URI, an error is returned explaining how it’s invalid.

See [glib.uri.Uri.split], and the definition of #GUriFlags, for more information on the effect of flags.

Parameters

uriStringa string containing an absolute URI
flagsflags for parsing uri_string

Returns

true if uri_string is a valid absolute URI, false on error.

Throws

[UriException]