ada_get_protocol

Retrieves the protocol component of a parsed URL (e.g., "http:"). Returns an empty string if the URL is invalid or no protocol is present.

extern (C) @nogc nothrow @safe @trusted
ada_get_protocol
()

Parameters

result ada_url

The ada_url handle.

Return Value

An ada_string containing the protocol.

Meta