Struct SseStream
Defined in File response_types.hpp
Struct Documentation
-
struct SseStream
Server-Sent Events stream shape returned by
RouteRegistry::ssehandlers. Each call tonext_eventwrites one event into the cpp-httplib data sink (formatteddata: <json>\n\n) and returnstrueto continue orfalseto terminate the stream.Minimum viable shape - real-world callers (fault stream, log stream) will likely move to a typed
TEvent-aware variant on top of this in their migration commit.Public Members
-
std::function<bool(httplib::DataSink &sink)> next_event
-
std::function<bool(httplib::DataSink &sink)> next_event