readText
Deprecated
Use readText with charset instead
Replace with
import io.ktor.utils.io.core.readText
import io.ktor.utils.io.charsets.Charset
Content copied to clipboard
readText(Charsets.forName(encoding), max)
Content copied to clipboard
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
Content copied to clipboard
readText(out, Charsets.forName(encoding), max)
Content copied to clipboard