Skip to main content

parse_api_base

Function parse_api_base 

Source
pub fn parse_api_base(text: &str) -> Result<Url, PolicyError>
Expand description

Validate an advertised API base URL.

ยงErrors

Returns an error when the URL is not an absolute HTTP(S) base without userinfo, query, fragment, or a trailing slash.