Skip to main content

parse_site

Function parse_site 

Source
pub fn parse_site(input: &str) -> Result<Site, String>
Expand description

Normalises input: a full URL (https://sonarr.home:8989/app), an address and port (192.168.1.20:8989), or a bare host (localhost).

A user name or password inside the address is refused: a credential in a URL is what this vault exists to keep out of URLs.