suitableCharset

fun <ERROR CLASS>.suitableCharset(defaultCharset: <ERROR CLASS> = Charsets.UTF_8): <ERROR CLASS>

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