contentType

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

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

See also