Classes

struct  CallbackData
 
class  Reply
 
class  Request
 
class  SSLConfig
 
class  WSFrame
 

Public Types

enum  ServerType { HTTPS, HTTP, WebSockets }
 

Static Public Member Functions

static std::string getBaseURL (ServerType type=HTTP)
 
static HTTPServergetInstance (unsigned short port, unsigned short wsPort, SSLConfig *sslConf=NULL)
 
static HTTPServergetInstance ()
 
static bool registerServlet (const std::string &path, HTTPServlet *servlet)
 Register a servlet, returns false if path is already taken.
 
static bool registerServlet (const std::string &path, WebSocketServlet *servlet)
 Register a servlet, returns false if path is already taken.
 
static void reply (const Reply &reply)
 
static void unregisterServlet (HTTPServlet *servlet)
 
static void unregisterServlet (WebSocketServlet *servlet)
 
static void wsBroadcast (const char *uri, enum evws_opcode opcode, const char *data, uint64_t length)
 
static void wsSend (struct evws_connection *conn, enum evws_opcode opcode, const char *data, uint64_t length)
 

Friends

class HTTPServlet
 
class WebSocketServlet
 

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