HttpAcceptRouteSelector

data class HttpAcceptRouteSelector(contentType: ContentType) : RouteSelector

Evaluates a route against a content-type in the HttpHeaders.Accept header in the request

Parameters

contentType

is an instance of ContentType

Constructors

Link copied to clipboard
fun HttpAcceptRouteSelector(contentType: ContentType)

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 contentType: ContentType
Link copied to clipboard
val quality: Double