peekScheme

Gets the scheme portion of a URI string. RFC 3986 decodes the scheme as: |[ URI = scheme ":" hier-part "#" fragment ]| Common schemes include file, https, svn+ssh, etc.

Unlike g_uri_parse_scheme(), the returned scheme is normalized to all-lowercase and does not need to be freed.

Return

The ‘scheme’ component of the URI, or null on error. The returned string is normalized to all-lowercase, and interned via g_intern_string(), so it does not need to be freed.

Since

2.66

Parameters

uri

a valid URI.