SSEServerContent

An OutgoingContent response object that could be used to respond(). It will start Server-Sent events SSE session.

Please note that you generally shouldn't use this object directly but use SSE plugin with routing builders sse instead.

handle function is applied to a session.

Parameters

call

that is starting SSE session.

handle

function that is started once SSE session created.

Constructors

Link copied to clipboard
constructor(call: ApplicationCall, handle: suspend ServerSSESession.() -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
open val contentLength: Long?
Link copied to clipboard
open override val contentType: ContentType
Link copied to clipboard
val handle: suspend ServerSSESession.() -> Unit
Link copied to clipboard
open val headers: Headers
Link copied to clipboard

Functions

Link copied to clipboard
open fun <T : Any> getProperty(key: AttributeKey<T>): T?
Link copied to clipboard
open fun <T : Any> setProperty(key: AttributeKey<T>, value: T?)
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun trailers(): Headers?
Link copied to clipboard
open suspend override fun writeTo(channel: ByteWriteChannel)