Uri.getProtocol

string getProtocol(string uri)

Extracts the protocol out of a given valid URI. The returned string must be freed using glib.global.gfree.

Parameters

uriA URI string

Returns

The protocol for this URI.