[ Version ( since = "2.66" ) ]
public string to_string ()

Returns a string representing this.

This is not guaranteed to return a string which is identical to the string that this 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 to_string is guaranteed to return a string which is at least semantically equivalent to the source URI (according to RFC 3986).

If this 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 to_string_partial to redact parts.



a Uri


a string representing this, which the caller must free.