respondBytesWriter

suspend fun ApplicationCall.respondBytesWriter(contentType: ContentType? = null, status: HttpStatusCode? = null, contentLength: Long? = null, producer: suspend ByteWriteChannel.() -> Unit)

Respond with a binary content producer.

The producer parameter will be called later when an engine is ready to produce content. You don't need to close it. The provided ByteWriteChannel will be closed automatically.