Skip to content

ResolveURI

[Source]

Resolve a URI reference against a base URI per RFC 3986 section 5.

Given an absolute base URI and any URI-reference, produces the target URI that the reference identifies relative to the base. This is the operation browsers perform when resolving href attributes against the current document URL.

The base must be an absolute URI (must have a scheme). Returns BaseURINotAbsolute if the base lacks a scheme.

primitive val ResolveURI

Constructors

create

[Source]

new val create()
: ResolveURI val^

Returns


Public Functions

apply

[Source]

Resolve reference against base using the algorithm from RFC 3986 section 5.2.2. The base must have a scheme; the reference may be any URI-reference (absolute or relative).

fun box apply(
  base: URI val,
  reference: URI val)
: (URI val | BaseURINotAbsolute val)

Parameters

  • base: URI val
  • reference: URI val

Returns


eq

[Source]

fun box eq(
  that: ResolveURI val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: ResolveURI val)
: Bool val

Parameters

Returns