pub fn resolve_chain(
base: Option<&Url>,
chain: &[String],
reference: &str,
) -> Option<String>Expand description
Resolve a BaseURL chain (outermost first) followed by a segment
reference. Each entry is joined onto the running result, so a relative
entry composes with the ones above it and an absolute one resets the chain.
Empty and whitespace-only entries are skipped — ISO/IEC 23009-1 §5.6.5 makes
several BaseURLs alternates for the same level, so an empty one
contributes nothing. None for a control character or whitespace in any
entry or the reference (first_forbidden_char), for an input that names
the synthetic scheme, or for a join error. With base == None a relative
outcome stays relative and contained (see the module docs).