PathSegmentParameterRouteSelector
data class PathSegmentParameterRouteSelector(val name: String, val prefix: String? = null, val suffix: String? = null) : RouteSelector
Evaluates a route against a parameter path segment and captures its value.
Parameters
name
is the name of the parameter to capture values to
prefix
is an optional suffix
suffix
is an optional prefix
Properties
Functions
Link copied to clipboard
open suspend override fun evaluate(context: RoutingResolveContext, segmentIndex: Int): RouteSelectorEvaluation
Evaluates this selector against context and a path segment at segmentIndex.