MakerLabs ACM
Requests::ServerSentEventsEmitter Class Reference

#include <server_sent_events_emitter.h>

Public Types

using string_view = std::experimental::string_view
 
using string = std::string
 
using PostCallbackAction = bool
 
using Callback = delegate< PostCallbackAction(string_view)>
 

Public Member Functions

 ServerSentEventsEmitter ()=default
 
 ~ServerSentEventsEmitter ()=default
 
auto parse (const string_view chunk, Callback &&_callback) -> bool
 

Static Public Attributes

static constexpr PostCallbackAction AbortProcessing = false
 
static constexpr PostCallbackAction ContinueProcessing = true
 

Member Typedef Documentation

◆ Callback

◆ PostCallbackAction

◆ string

◆ string_view

using Requests::ServerSentEventsEmitter::string_view = std::experimental::string_view

Constructor & Destructor Documentation

◆ ServerSentEventsEmitter()

Requests::ServerSentEventsEmitter::ServerSentEventsEmitter ( )
default

◆ ~ServerSentEventsEmitter()

Requests::ServerSentEventsEmitter::~ServerSentEventsEmitter ( )
default

Member Function Documentation

◆ parse()

auto Requests::ServerSentEventsEmitter::parse ( const string_view  chunk,
Callback &&  _callback 
) -> bool
Here is the call graph for this function:

Member Data Documentation

◆ AbortProcessing

constexpr PostCallbackAction Requests::ServerSentEventsEmitter::AbortProcessing = false
static

◆ ContinueProcessing

constexpr PostCallbackAction Requests::ServerSentEventsEmitter::ContinueProcessing = true
static

The documentation for this class was generated from the following files: