TemplatePathPattern

data class TemplatePathPattern(val pattern: String, val prefix: Boolean = false) : PathPattern

A path definition. It parses path patterns and extract values for parameters.

No splat support (you can use named parameters though).

Delimiter is {var} to conform with RFC 6570.

Constructors

Link copied to clipboard
fun TemplatePathPattern(pattern: String, prefix: Boolean = false)

Functions

Link copied to clipboard
open override fun addPrefix(prefix: String?): PathPattern
Link copied to clipboard
open override fun describe(): String
Link copied to clipboard
open override fun extractParameters(requestUrl: String): Map<String, String>
Link copied to clipboard
open override fun matches(requestUrl: String): Boolean

Properties

Link copied to clipboard
open override val pattern: String
Link copied to clipboard
open override val prefix: Boolean = false