SseStreamResponseDefinition

open class SseStreamResponseDefinition<P>(val chunkFlow: <Error class: unknown class><<Error class: unknown class>>? = null, delay: <Error class: unknown class> = Duration.ZERO) : StreamResponseDefinition<P, <Error class: unknown class>>

Constructors

Link copied to clipboard
constructor(chunkFlow: <Error class: unknown class><<Error class: unknown class>>? = null, delay: <Error class: unknown class> = Duration.ZERO)

Properties

Link copied to clipboard
open override val chunkFlow: <Error class: unknown class><<Error class: unknown class>>? = null

A Flow of chunks to be streamed as part of the response.

Link copied to clipboard
val chunks: List<<Error class: unknown class>>?

A list of chunks representing the response data to be sent.

Link copied to clipboard
val contentType: <Error class: unknown class>?

The MIME type of the response content. Defaults to null.

Link copied to clipboard
open val delay: <Error class: unknown class>
Link copied to clipboard
val delayBetweenChunks: <Error class: unknown class>

Delay between the transmission of each chunk.

Link copied to clipboard
val headerList: List<<Error class: unknown class><String, String>>

A list of header key-value pairs to populate the response headers. Defaults to an empty list.

Link copied to clipboard
val headers: <Error class: unknown class>.() -> Unit?

A lambda function for configuring the response headers. Defaults to null.

Link copied to clipboard
val httpStatus: <Error class: unknown class>

The HTTP status code of the response. Defaults to HttpStatusCode.OK.