Skip to main content

resolve

Function resolve 

Source
pub fn resolve(raw_host: Option<&str>, configured: &Url) -> RequestBaseUrl
Expand 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.