Rfc6570UriTemplateMatcher

Implementation of RFC 6570 URI Templates (Level 1 and Level 2)

This implementation supports:

  • Level 1: Simple string expansion {var}

  • Level 2: Reserved expansion {+var} and Fragment expansion {#var}

It provides both template matching and expansion functionality.

Functions

Link copied to clipboard
fun expand(template: String, variables: Map<String, Any>): String

Expands a URI template with the given variable values

Link copied to clipboard

Checks if a URI matches a template