#ifndef _HTTPDISPATCHER_
#define _HTTPDISPATCHER_

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

class HttpDispatcher: public TcpDispatcher {
public:
    HttpDispatcher (int fd, struct in_addr ip);

    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
