struct SseParser {
struct String buf;
struct String data;
struct String event;
struct String last_id;
int has_data;
int retry;
}Fields
unconsumed bytes
Methods
Adds received bytes.
The next complete event (1, 'out' filled — free it) or 0 if more input is needed. Comment lines and events without data are skipped.
= drop()