HttpMultiAcceptRouteSelector

Evaluates a route against a Content-Type in the HttpHeaders.Accept request header.

Parameters

contentTypes

a list of ContentType to accept

Constructors

Link copied to clipboard
constructor(contentTypes: List<ContentType>)

Properties

Link copied to clipboard

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