bodyAsString

suspend fun bodyAsString(): String?(source)

Returns the raw request body as a String, suspending if the body has not yet been read.

The result is cached after the first call; later calls return immediately without I/O. Returns null if the request has no body.