uri_has_protocol
function uri_has_protocol(uri:String, protocol:String):Boolean { // Gjs wrapper for gst_uri_has_protocol() }
Checks if the protocol of a given valid URI matches protocol.
- uri
a URI string
- protocol
a protocol string (e.g. "http")
- Returns
true if the protocol matches.