URI.uriParseScheme

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

struct URI
static
string
uriParseScheme
(
string uri
)

Parameters

uri string

a valid URI.

Return: The "Scheme" component of the URI, or %NULL on error. The returned string should be freed when no longer needed.

Meta

Since

2.16