Skip to content

PathSegments

[Source]

Split a URI path on / delimiters, then percent-decode each segment.

A leading / produces an empty first segment (distinguishes absolute from relative paths). Splitting happens before decoding, so a percent-encoded / (%2F) within a segment is preserved as a literal slash in the decoded segment, not treated as a delimiter.

primitive val PathSegments

Constructors

create

[Source]

new val create()
: PathSegments val^

Returns


Public Functions

apply

[Source]

fun box apply(
  path: String val)
: (Array[String val] val | InvalidPercentEncoding val)

Parameters

Returns


eq

[Source]

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

Parameters

Returns


ne

[Source]

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

Parameters

Returns