Represents a single Server-Sent Event. More...
#include <sse_event.hpp>
Public Attributes | |
| std::string | event |
| Event type (from "event:" field, empty if not set) | |
| std::string | data |
| Event data (from "data:" field(s), joined with newlines) | |
| std::string | id |
| Last event ID (from "id:" field) | |
| int | retry = -1 |
| Reconnection time in ms (from "retry:" field, -1 if not set) | |
Represents a single Server-Sent Event.
Fields follow the SSE specification: https://html.spec.whatwg.org/multipage/server-sent-events.html
| std::string cpp_restapi::SseEvent::data |
Event data (from "data:" field(s), joined with newlines)
| std::string cpp_restapi::SseEvent::event |
Event type (from "event:" field, empty if not set)
| std::string cpp_restapi::SseEvent::id |
Last event ID (from "id:" field)
| int cpp_restapi::SseEvent::retry = -1 |
Reconnection time in ms (from "retry:" field, -1 if not set)