StreamResponseDefinition

constructor(chunkFlow: <Error class: unknown class><T>? = null, chunks: List<T>? = null, delayBetweenChunks: <Error class: unknown class> = Duration.ZERO, contentType: <Error class: unknown class> = ContentType.Text.EventStream.withCharset(Charsets.UTF_8), httpStatus: <Error class: unknown class> = HttpStatusCode.OK, headers: <Error class: unknown class>.() -> Unit? = null, headerList: List<<Error class: unknown class><String, String>> = emptyList<Pair<String, String>>(), delay: <Error class: unknown class>)

Initializes a streaming response definition with the specified flow, chunk list, content type, HTTP status code, and headers.

Extends:

Parameters

P

The type of the request body.

T

The type of the response data being streamed.