class HttpSseOptions
source · line 12public
public class HttpSseOptions internal constructor(
/**
* SSE line and event-data byte bounds.
*/
public val limits: SseLimits = SseLimits(),
/**
* The positive input-buffer size.
*/
public val bufferSize: Long = 8192L,
/**
* An optional starting Last-Event-ID value.
*/
public val initialLastEventId: String? = None,
/**
* Optional reconnection policy; None ends after the current stream.
*/
public val reconnect: HttpSseReconnectOptions? = None
)
SSE parser limits, buffer size, initial event ID, and optional reconnection policy. Reconnection is disabled unless explicitly configured.
Extensions
public fun HttpSseOptions.copy(configure: HttpSseOptionsBuilder.() -> Unit = {}): HttpSseOptions· scoop:scoop.http.client:0.1.0
property reconnect
source · line 28public
public val reconnect: HttpSseReconnectOptions? = None
get: public read-only
Optional reconnection policy; None ends after the current stream.
property initialLastEventId
source · line 24public
public val initialLastEventId: String? = None
get: public read-only
An optional starting Last-Event-ID value.
property bufferSize
source · line 20public
public val bufferSize: Long = 8192L
get: public read-only
The positive input-buffer size.
property limits
source · line 16public
public val limits: SseLimits = SseLimits()
get: public read-only
SSE line and event-data byte bounds.