bodyAsBytes

abstract fun bodyAsBytes(): ByteArray

Return

The request body as a ByteArray. Probably only useful for non-string request payload. Most use cases probably should use bodyAsString It's safe to call this method multiple times.