class SseOptions
source · line 8public
public class SseOptions public constructor(
/** Idle interval for flushed comment heartbeats; None disables them. */
public val heartbeatInterval: Duration? = None,
/** Whether the installed response compression policy may encode this event stream. */
public val allowCompression: Boolean = false
)
SSE endpoint behavior; application replay and subscription state remain external.
Extensions
public fun SseOptions.copy(configure: SseOptionsBuilder.() -> Unit = {}): SseOptions· scoop:scoop.http.server:0.1.0
constructor constructor
source · line 8public
constructor(public val heartbeatInterval: Duration? = None, public val allowCompression: Boolean = false)
parameter allowCompression
source · line 12public
public val allowCompression: Boolean = false
parameter heartbeatInterval
source · line 10public
public val heartbeatInterval: Duration? = None
property heartbeatInterval
source · line 10public
public val heartbeatInterval: Duration? = None
get: public read-only
Idle interval for flushed comment heartbeats; None disables them.
property allowCompression
source · line 12public
public val allowCompression: Boolean = false
get: public read-only
Whether the installed response compression policy may encode this event stream.