respondOutputStream
suspend fun ApplicationCall.respondOutputStream(contentType: ContentType? = null, status: HttpStatusCode? = null, producer: suspend OutputStream.() -> Unit)
Content copied to clipboard
suspend fun ApplicationCall.respondOutputStream(contentType: ContentType? = null, status: HttpStatusCode? = null, contentLength: Long? = null, producer: suspend OutputStream.() -> 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 OutputStream will be closed automatically.