suspend fun ApplicationCall.respondBytesWriter(contentType: <ERROR CLASS>? = null, status: <ERROR CLASS>? = null, contentLength: Long? = null, producer: suspend <ERROR CLASS>.() -> 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.