server_sent_event_parser class
#include <nxt/http.hpp>
Incremental parser for server-sent event text.
Public functions
-
auto close() → std::
vector<server_ sent_ event> - Finish the stream and return any final pending event.
-
auto feed(std::
string_view body) → std:: vector<server_ sent_ event> - Feed a body chunk and return complete events.