Function iri_string::resolve::resolve[][src]

pub fn resolve<S: Spec>(
    reference: impl AsRef<RiReferenceStr<S>>,
    base: impl AsRef<RiAbsoluteStr<S>>,
    is_strict: bool
) -> RiString<S>
Expand description

Resolves the IRI reference.

It is recommended to use methods such as RiReferenceStr::resolve_against() and RiRelativeStr::resolve_against(), rather than this freestanding function.

It is strongly recommended to pass true for is_strict parameter. If is_strict is false, the resolution is done in backward compat mode. However, its use should be avoided.

Some parsers allow the scheme name to be present in a relative reference if it is the same as the base URI scheme. This is considered to be a loophole in prior specifications of partial URI RFC1630. Its use should be avoided but is allowed for backward compatibility.

RFC 3986 section 5.2

See RFC 3986 section 5.2 for detail.

Enabled by alloc or std feature.