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 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.