pub fn resolve(raw_host: Option<&str>, configured: &Url) -> RequestBaseUrlExpand description
Resolve a RequestBaseUrl from an optional Host header and configured
api_external_url.
Exposed for unit testing — production callers use the FromRequestParts
impl which reads both from the request and global config.