Scoop API

scoop:scoop.http:0.1.0

SseDecoder

class SseDecoder

source · line 10
public
public class SseDecoder public constructor(limits: SseLimits = SseLimits(), initialLastEventId: String = "") : Closeable

An incremental UTF-8 event-stream parser with bounded line and event data. It tracks event IDs and retry hints but performs no reconnection or network I/O.

function endInput

source · line 84
public
public fun endInput(): Unit

Reports EOF and discards an unterminated event; a blank line is required for dispatch.

function nextEvent

source · line 74
public
public fun nextEvent(): SseEvent?

Removes the next parsed event, or returns None when no event is ready.

function close

source · line 95
public
public override fun close(): Unit

Closes the parser and discards incomplete and queued data without network I/O.