Scoop API

scoop:scoop.http.client:0.1.0

HttpSseOptions

class HttpSseOptions

source · line 12
public
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

property initialLastEventId

source · line 24
public
public val initialLastEventId: String? = None

get: public read-only

An optional starting Last-Event-ID value.

property bufferSize

source · line 20
public
public val bufferSize: Long = 8192L

get: public read-only

The positive input-buffer size.

property limits

source · line 16
public
public val limits: SseLimits = SseLimits()

get: public read-only

SSE line and event-data byte bounds.