A SSE frame.
More...
#include <SSEFrame.h>
|
std::string | _event |
| The UTF-8 encoded event name or an empty string if unset.
|
|
std::string | _data |
| The UTF-8 encoded data to be sent.
|
|
◆ SSEFrame() [1/2]
ofx::HTTP::SSEFrame::SSEFrame |
( |
const std::string & |
data | ) |
|
Create a SSEFrame without an event name.
- Parameters
-
data | The UTF-8 encoded data to send. |
◆ SSEFrame() [2/2]
ofx::HTTP::SSEFrame::SSEFrame |
( |
const std::string & |
event, |
|
|
const std::string & |
data |
|
) |
| |
Create a SSEFrame with an event name.
- Parameters
-
event | The UTF-8 encoded event name to send. |
data | The UTF-8 encoded data to send. |
◆ data()
std::string ofx::HTTP::SSEFrame::data |
( |
| ) |
const |
- Returns
- the UTF-8 encoded data to be sent.
◆ event()
std::string ofx::HTTP::SSEFrame::event |
( |
| ) |
const |
- Returns
- the UTF-8 encoded event name or an empty string if unset.
The documentation for this class was generated from the following files: