ktor-http / io.ktor.http.content / OutputStreamContent / writeTo

writeTo

suspend fun writeTo(channel: ByteWriteChannel): Unit

Overrides WriteChannelContent.writeTo

Receives channel provided by the engine and writes all data to it