HttpMethodRouteSelector

data class HttpMethodRouteSelector : RouteSelector

Evaluates a route against an HttpMethod

Parameters

method - is an instance of HttpMethod

Constructors

<init>

HttpMethodRouteSelector(method: HttpMethod)

Evaluates a route against an HttpMethod

Properties

method

val method: HttpMethod

is an instance of HttpMethod

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