PathSegmentOptionalParameterRouteSelector

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

Report a problem

Parameters

name

is the name of the parameter to capture values to

prefix

is an optional suffix

suffix

is an optional prefix

Constructors

constructor(name: String, prefix: String? = null, suffix: String? = null)

Properties

Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard
open override fun toString(): String