Uri.isValid

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.

class Uri
static
bool
isValid

Parameters

uriString string

a string containing an absolute URI

flags glib.types.UriFlags

flags for parsing uri_string

Return Value

Type: bool

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