Skip to content

URIEquivalent

[Source]

Test whether two URIs are equivalent under RFC 3986 normalization.

Normalizes both URIs via NormalizeURI (syntax-based and scheme-based) and compares them with structural equality. This catches equivalences that raw string or structural comparison would miss — for example, HTTP://Example.COM:80/path and http://example.com/path are equivalent.

Returns InvalidPercentEncoding if either URI contains a malformed percent-encoded sequence.

primitive val URIEquivalent

Constructors

create

[Source]

new val create()
: URIEquivalent val^

Returns


Public Functions

apply

[Source]

fun box apply(
  a: URI val,
  b: URI val)
: (Bool val | InvalidPercentEncoding val)

Parameters

Returns


eq

[Source]

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

Parameters

Returns


ne

[Source]

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

Parameters

Returns