pub fn normalize_base_url(raw: &str) -> Result<String, HttpError>
Canonical base-URL normalization used by every provider config.
Trims whitespace and a single trailing slash, rejects non-http(s) schemes and empty hosts.