Skip to main content
Source

pub fn url_protocol(&self) -> &str

Gets the protocol (http or https) of the current URL.

The protocol scheme of the current URL (e.g., “http” or “https”).