31 #ifndef IWEBSERVEREVENTSINK_H_ 32 #define IWEBSERVEREVENTSINK_H_ 57 virtual bool onGet(
PServerInfo& serverInfo,
Http& httpRequest, std::shared_ptr<TcpSocket>& socket, std::string& path) {
return false; }
68 virtual bool onPost(
PServerInfo& serverInfo,
Http& httpRequest, std::shared_ptr<TcpSocket>& socket, std::string& path) {
return false; }
Definition: BaseLib.cpp:34
virtual ~IWebserverEventSink()
Definition: IWebserverEventSink.h:46
virtual bool onPost(PServerInfo &serverInfo, Http &httpRequest, std::shared_ptr< TcpSocket > &socket, std::string &path)
Called on every HTTP POST request processed by the web server.
Definition: IWebserverEventSink.h:68
virtual bool onGet(PServerInfo &serverInfo, Http &httpRequest, std::shared_ptr< TcpSocket > &socket, std::string &path)
Called on every HTTP GET request processed by the web server.
Definition: IWebserverEventSink.h:57
std::shared_ptr< ServerInfo::Info > PServerInfo
Definition: ServerInfo.h:118
This class provides hooks into the web server so get and post requests can be passed into family modu...
Definition: IWebserverEventSink.h:43