ktor-http / io.ktor.http.content / ChannelWriterContent / <init>

<init>

ChannelWriterContent(body: suspend ByteWriteChannel.() -> Unit, contentType: ContentType?, status: HttpStatusCode? = null)

OutgoingContent to respond with ByteWriteChannel. The stream would be automatically closed after body finish.