pub fn parse(url: &str) -> Result<(Origin, String), EndpointError>
Parse a URL’s origin; the path, if any, is returned beside it.