Scoop API

scoop:scoop.http.server:0.1.0

stream

function stream

source · line 107
public
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.