Uri.toString_

Returns a string representing uri.

This is not guaranteed to return a string which is identical to the string that uri was parsed from. However, if the source URI was syntactically correct (according to RFC 3986), and it was parsed with G_URI_FLAGS_ENCODED, then glib.uri.Uri.toString_ is guaranteed to return a string which is at least semantically equivalent to the source URI (according to RFC 3986).

If uri might contain sensitive details, such as authentication parameters, or private data in its query string, and the returned string is going to be logged, then consider using glib.uri.Uri.toStringPartial to redact parts.

class Uri
string
toString_
()

Return Value

Type: string

a string representing uri, which the caller must free.