respondBytesWriter
suspend fun ApplicationCall.respondBytesWriter(contentType: ContentType? = null, status: HttpStatusCode? = null, producer: suspend ByteWriteChannel.() -> Unit)
Content copied to clipboard
Respond with binary content producer.
The producer parameter will be called later when engine is ready to produce content. You don't need to close it. Provided ByteWriteChannel will be closed automatically.