function stream
source · line 107public
public fun stream(contentType: String, produce: suspend (HttpBodyWriter) -> Unit, length: Long? = None, status: UInt = 200U, trailers: (() -> List<HttpField>)? = None): HttpResult
Builds a streaming response whose producer remains inside all enclosing middleware scopes.
parameter status
source · line 111public
status: UInt = 200U
parameter contentType
source · line 108public
contentType: String
parameter produce
source · line 109public
produce: suspend (HttpBodyWriter) -> Unit
parameter length
source · line 110public
length: Long? = None
parameter trailers
source · line 112public
trailers: (() -> List<HttpField>)? = None