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.
- If
base_urlparses 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). - Otherwise fall back to each vendor’s well-known host.
- Unknown vendor with no parseable URL →
None.