encodeForOutput

fun encodeForOutput(contentType: MediaType, body: ByteArray, outputCharset: Charset): Pair<String, ByteArray>(source)