Uri.fromStringEscaped

gst.uri.Uri fromStringEscaped(string uri)

Parses a URI string into a new #GstUri object. Will return NULL if the URI cannot be parsed. This is identical to [gst.uri.Uri.fromString] except that the userinfo and fragment components of the URI will not be unescaped while parsing.

Use this when you need to extract a username and password from the userinfo such as https://user:passwordexample.com since either may contain a URI-escaped ':' character. [gst.uri.Uri.fromString] will unescape the entire userinfo component, which will make it impossible to know which ':' delineates the username and password.

The same applies to the fragment component of the URI, such as

https://example.com/path#fragment which may contain a URI-escaped '#'.

Parameters

uriThe URI string to parse.

Returns

A new #GstUri object, or NULL.