Skip to main content

bare_origin

Function bare_origin 

Source
pub fn bare_origin(url: &str) -> Option<String>
Expand description

url as an origin and nothing else: the origin (target_origin) when url names no more than one (no path beyond /, no query, fragment or user information), else None. What a saved site is stored as when it is only an origin written another way (HTTPS://Example.com:443/ becomes https://example.com); an address with a path is a login’s own page and is left as it was typed.