Uri.parse

glib.uri.Uri parse(string uriString, glib.types.UriFlags flags)

Parses uri_string according to flags. If the result is not a valid absolute URI, it will be discarded, and an error returned.

Parameters

uriStringa string representing an absolute URI
flagsflags describing how to parse uri_string

Returns

a new #GUri, or NULL on error.

Throws

[UriException]