URIHandlerT.uriHasProtocol

Checks if the protocol of a given valid URI matches @protocol.

template URIHandlerT(TStruct)
static
bool
uriHasProtocol
(
string uri
,
string protocol
)

Parameters

uri string

a URI string

protocol string

a protocol string (e.g. "http")

Return: %TRUE if the protocol matches.

Meta