std1.0.0-beta-7 SafeC docs

std :: http::sse

Struct std::SseEvent

#include <std/http/sse.h> source

struct SseEvent {
    struct String event;
    struct String data;
    struct String id;
    int retry;
}

Fields

§struct String eventsource

"message" when the stream gave none

§struct String datasource

data: lines joined with '\n'

§struct String idsource

the last event id seen (sticky, as EventSource)

§int retrysource

retry: value from this event, -1 if none

Methods

§void drop()source · definition
§void free() consumesource · definition

= drop()