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.
The ada_url handle.
An ada_string containing the protocol.
See Implementation
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.