Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Member group

Resolve

Declaring type: Uri
Module: System
Assembly: System.Runtime.dll
Source file: Uri.rvn

Overloads / Variants

Resolve

func Resolve(reference: string) -> Result<Uri, UriError>

Source file: Uri.rvn

Resolves a reference against this absolute base using RFC 3986 section 5.2.

Parameters

Name Type Description
reference String Relative or absolute reference. A root-relative path replaces the base path; an ordinary path replaces its last segment.

Return value

Result<Uri, UriError>

Ok with the resolved Uri, or a parsing error, BaseNotAbsolute, or TooLong.

Remarks

Directory bases need a trailing slash. Query-only references preserve the base path. Absent and empty queries differ. The reference supplies the fragment. Only literal dot segments are removed; encoded dots and slashes are preserved. A relative base is rejected even with an absolute reference.

Resolve

func Resolve(reference: Uri) -> Result<Uri, UriError>

Source file: Uri.rvn

Resolves a reference against this absolute base using RFC 3986 section 5.2.

Parameters

Name Type Description
reference Uri Relative or absolute reference. A root-relative path replaces the base path; an ordinary path replaces its last segment.

Return value

Result<Uri, UriError>

Ok with the resolved Uri, or a parsing error, BaseNotAbsolute, or TooLong.

Remarks

Directory bases need a trailing slash. Query-only references preserve the base path. Absent and empty queries differ. The reference supplies the fragment. Only literal dot segments are removed; encoded dots and slashes are preserved. A relative base is rejected even with an absolute reference.