respondOutputStream

suspend fun <Error class: unknown class>.respondOutputStream(contentType: ContentType? = null, status: HttpStatusCode? = null, producer: suspend OutputStream.() -> Unit)
suspend fun <Error class: unknown class>.respondOutputStream(contentType: ContentType? = null, status: HttpStatusCode? = null, contentLength: Long? = null, producer: suspend OutputStream.() -> Unit)

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 OutputStream will be closed automatically.