SetResponseStream Method
Sets a stream to be served as a response.
Syntax
public fun setResponseStream(connectionId: Long, dataStream: InputStream?, closeStream: Boolean, contentType: String?)
Remarks
Use this property to provide the response content in a stream. Set CloseStream to indicate that the stream should be disposed of once sent.