pub fn parse_api_base(text: &str) -> Result<Url, PolicyError>
Validate an advertised API base URL.
Returns an error when the URL is not an absolute HTTP(S) base without userinfo, query, fragment, or a trailing slash.