suitableCharsetOrNull

fun Headers.suitableCharsetOrNull(defaultCharset: Charset = Charsets.UTF_8): Charset?

Detect suitable charset for an application call by Accept header or fallback to null