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

LocalPortRouteSelector

data class LocalPortRouteSelector : RouteSelector

Evaluate a route against the port on which the call was received.

Parameters

port - the port to match against

Constructors

<init>

LocalPortRouteSelector(port: Int)

Evaluate a route against the port on which the call was received.

Properties

port

val port: Int

the port to match against

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

Companion Object Properties

LocalPortParameter

const val LocalPortParameter: String

Parameter name for RoutingApplicationCall.parameters for request host