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 resolvedrelative 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
uriString | a string containing an absolute URI |
flags | flags for parsing uri_string |
Returns
true if uri_string is a valid absolute URI, false on error.
Throws
[UriException]