← Back to Kairo Docs|API Reference (Dokka)

HandleReceiver

Receiver context for REST endpoint handlers. Provides access to the raw Ktor call and the deserialized endpoint.

Properties

Link copied to clipboard
val call: RoutingCall

The underlying Ktor routing call. Use to access headers, cookies, or other request details.

Link copied to clipboard
val endpoint: E

The deserialized endpoint instance, populated from path params, query params, and the request body.

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.