Uri.parseRelative

Parses uri_ref according to flags and, if it is a relative URI, resolves it relative to base_uri. If the result is not a valid absolute URI, it will be discarded, and an error returned.

class Uri
parseRelative

Parameters

uriRef string

a string representing a relative or absolute URI

flags glib.types.UriFlags

flags describing how to parse uri_ref

Return Value

Type: glib.uri.Uri

a new #GUri, or NULL on error.