Skip to main content

normalize_base_url

Function normalize_base_url 

Source
pub fn normalize_base_url(raw: &str) -> Result<String, HttpError>
Expand description

Canonical base-URL normalization used by every provider config.

Trims whitespace and a single trailing slash, rejects non-http(s) schemes and empty hosts.