HttpHeaderRouteSelector

data class HttpHeaderRouteSelector : RouteSelector

Evaluates a route against a header in the request

Parameters

name - is a name of the header

value - is a value of the header

Constructors

<init>

HttpHeaderRouteSelector(name: String, value: String)

Evaluates a route against a header in the request

Properties

name

val name: String

is a name of the header

value

val value: String

is a value of the header

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