HttpAcceptRouteSelector
data class HttpAcceptRouteSelector(contentType: ContentType) : RouteSelector
Content copied to clipboard
Evaluates a route against a content-type in the HttpHeaders.Accept header in the request
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