accepts

fun accepts(contentType: ContentType): Boolean(source)

Note that the Accept header ignores CharSet because that is in a separate Accept-CharSet header..