Skip to main content

resolve_provider_host

Function resolve_provider_host 

Source
pub fn resolve_provider_host(
    vendor: &str,
    base_url: Option<&str>,
) -> Option<String>
Expand description

Resolve the provider_host envelope field from a vendor type and an optional configured base_url.

  1. If base_url parses as a URL with a host → that host (no scheme, no port, no path; path/query are dropped because they may carry tokens or tenant ids).
  2. Otherwise fall back to each vendor’s well-known host.
  3. Unknown vendor with no parseable URL → None.