ktor-server-core / io.ktor.routing / PathSegmentSelectorBuilder / parseParameter

parseParameter

fun parseParameter(value: String): RouteSelector

Builds a RouteSelector to match a path segment parameter with prefix/suffix and a name

fun parseParameter(value: String, hasTrailingSlash: Boolean): RouteSelector
Deprecated: hasTrailingSlash is not used anymore. This is going to be removed

Builds a RouteSelector to match a path segment parameter with prefix/suffix, name and trailing slash if any