ktor-server-core / io.ktor.routing / PathSegmentConstantRouteSelector

PathSegmentConstantRouteSelector

data class PathSegmentConstantRouteSelector : RouteSelector

Evaluates a route against a constant path segment

Parameters

value - is a value of the path segment

Constructors

<init>

PathSegmentConstantRouteSelector(value: String, hasTrailingSlash: Boolean)PathSegmentConstantRouteSelector(value: String)

Evaluates a route against a constant path segment

Properties

value

val value: String

is a value of the path segment

Inherited Properties

quality

val quality: Double

indicates how good this selector is compared to siblings

Functions

evaluate

fun evaluate(context: RoutingResolveContext, segmentIndex: Int): RouteSelectorEvaluation

Evaluates this selector against context and a path segment at segmentIndex

toString

fun toString(): String