cpp Rest API master
C++ library for REST API access with Qt, Curl and cpp-httplib backends
 
Loading...
Searching...
No Matches
cpp_restapi::SseEvent Struct Reference

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)
 

Detailed Description

Represents a single Server-Sent Event.

Fields follow the SSE specification: https://html.spec.whatwg.org/multipage/server-sent-events.html

Member Data Documentation

◆ data

std::string cpp_restapi::SseEvent::data

Event data (from "data:" field(s), joined with newlines)

◆ event

std::string cpp_restapi::SseEvent::event

Event type (from "event:" field, empty if not set)

◆ id

std::string cpp_restapi::SseEvent::id

Last event ID (from "id:" field)

◆ retry

int cpp_restapi::SseEvent::retry = -1

Reconnection time in ms (from "retry:" field, -1 if not set)


The documentation for this struct was generated from the following file: