text
fun Body.Companion.text(text: String, charset: Charset = Charsets.UTF_8, contentType: String = "text/plain; charset="): Body(source)
suspend fun ContentSource.text(charset: Charset = contentType.parseCharsetFromContentType(), limit: Int? = null): String(source)
Convenience method to convert a body's content into a UTF-8 string.
Parameters
limit
If set and the size of the body is larger than it, throw an exception.