accept

fun Route.accept(
    contentType: ContentType,
    build: Route.() -> Unit
): Route

Builds a route to match requests with HttpHeaders.Accept header matching specified contentType