contentType

fun ApplicationRequest.contentType(): <ERROR CLASS>

Gets a request's content type or returns ContentType.Any.