OptionalParameterRouteSelector

data class OptionalParameterRouteSelector(name: String) : RouteSelector

Evaluates a route against an optional query parameter value and captures its value, if found

Parameters

name

is a name of the query parameter

Constructors

Link copied to clipboard
fun OptionalParameterRouteSelector(name: String)

Functions

Link copied to clipboard
open 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

Properties

Link copied to clipboard
val name: String
Link copied to clipboard
val quality: Double