httpdispatcher (525B)
1 #ifndef _HTTPDISPATCHER_ 2 #define _HTTPDISPATCHER_ 3 4 #include "sys/sys" 5 #include "Dispatchers/tcpdispatcher/tcpdispatcher" 6 #include "httpbuffer/httpbuffer" 7 #include "SocketHandling/socket/socket" 8 9 class HttpDispatcher: public TcpDispatcher { 10 public: 11 HttpDispatcher(Socket &s): TcpDispatcher(s) {} 12 13 void dispatch(); 14 void handle(); 15 bool issticky() const { return is_sticky; } 16 void issticky(bool s) { is_sticky = s; } 17 18 private: 19 void senderrorpage(string const &desc); 20 bool is_sticky; 21 }; 22 23 #endif