HandleReceiver
Receiver context for REST endpoint handlers. Provides access to the raw Ktor call and the deserialized endpoint.
Properties
Functions
Link copied to clipboard
fun HandleReceiver<*>.serverSentEvents(handler: suspend ServerSSESession.() -> Unit): SSEServerContent
Starts a Server-Sent Events stream from within a REST endpoint handler. Sets the required SSE headers and returns the streaming content.