readText

fun ByteReadPacket.readText(encoding: String, max: Int = Int.MAX_VALUE): String

Deprecated

Use readText with charset instead

Replace with

import io.ktor.utils.io.core.readText
import io.ktor.utils.io.charsets.Charset
readText(Charset.forName(encoding), max)

fun ByteReadPacket.readText(encoding: String = "UTF-8", out: Appendable, max: Int = Int.MAX_VALUE): Int

Deprecated

Use readText with charset instead

Replace with

import io.ktor.utils.io.core.readText
import io.ktor.utils.io.charsets.Charset
readText(out, Charset.forName(encoding), max)