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
uri | A URI string |
Returns
The protocol for this URI.
string getProtocol(string uri)Extracts the protocol out of a given valid URI. The returned string must be freed using [glib.global.gfree].
uri | A URI string |