Uri.getProtocol

Extracts the protocol out of a given valid URI. The returned string must be freed using g_free().

class Uri
static
string
getProtocol
(
string uri
)

Parameters

uri string

A URI string

Return: The protocol for this URI.

Meta