contentType

fun Route.contentType(contentType: <ERROR CLASS>, build: Route.() -> Unit): Route

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

See also