pathVariable

Gets a path variable by given name

Return

Value of the path variable or null if it doesn't exist

Parameters

name

Name of the path variable


inline fun <A> pathVariable(name: String, converter: (String) -> A?): A?(source)

Gets a path variable by given name converted to given type

Return

Value of the path variable as given type or null if it doesn't exist

Parameters

name

Name of the path variable

converter

Conversion function

Throws

If conversion fails