suitableCharset

fun ApplicationCall.suitableCharset(defaultCharset: Charset = Charsets.UTF_8): Charset

Detects a suitable charset for an application call by using the Accept header or fallbacks to defaultCharset.