HttpAcceptRouteSelector
data class HttpAcceptRouteSelector(contentType: <ERROR CLASS>) : RouteSelector
Content copied to clipboard
Evaluates a route against a Content-Type
in the HttpHeaders.Accept request header.
Parameters
contentType
is an instance of ContentType
Constructors
Functions
Link copied to clipboard
open override fun evaluate(context: RoutingResolveContext, segmentIndex: Int): RouteSelectorEvaluation
Content copied to clipboard
Evaluates this selector against context and a path segment at segmentIndex.