#ifndef _HTTPDISPATCHER_
#define _HTTPDISPATCHER_

#include "sys/sys"
#include "Dispatchers/tcpdispatcher/tcpdispatcher"
#include "httpbuffer/httpbuffer"
#include "SocketHandling/socket/socket"

class HttpDispatcher: public TcpDispatcher {
public:
    HttpDispatcher(Socket &s): TcpDispatcher(s) {}

    void dispatch();
    void handle();
    bool issticky() const 		{ return is_sticky; }
    void issticky(bool s)		{ is_sticky = s; }

private:
    void senderrorpage(string const &desc);
    bool is_sticky;
};    

#endif
