Skip to content

SimpleURITemplate

[Source]

A very simple URI Template handler. It only handles path segments.

Handling is very primitive and likely to result in errors if non-ASCII or special characters like / are involved in the expanded variables.

This is sufficient for working with most GitHub REST API URI templates and probably nothing more.

Should handle but currently does not, removing template values for which there is no expansion.

primitive val SimpleURITemplate

Constructors

create

[Source]

new val create()
: SimpleURITemplate val^

Returns


Public Functions

apply

[Source]

fun box apply(
  template: String val,
  values: Array[(String val , String val)] val)
: (String val | ParseError val)

Parameters

Returns


eq

[Source]

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

Parameters

Returns


ne

[Source]

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

Parameters

Returns