ktor-server-core / io.ktor.routing / PathSegmentOptionalParameterRouteSelector / <init>

<init>

PathSegmentOptionalParameterRouteSelector(name: String, prefix: String? = null, suffix: String? = null, hasTrailingSlash: Boolean) PathSegmentOptionalParameterRouteSelector(name: String, prefix: String? = null, suffix: String? = null)

Evaluates a route against an optional parameter path segment and captures its value, if any

Parameters

name - is the name of the parameter to capture values to

prefix - is an optional suffix

suffix - is an optional prefix