#ifndef __HTTPHandler_h__
#define __HTTPHandler_h__

#include "Command.h"
#include "TCPSession.h"
#include "Log.h"
#include "IMFMessage.h"
#include "HTTPRequest.h"

namespace http {
   
   class HTTPHandler : public core::Command {
   
    public:
      int processCommand(std::string request, core::TCPSession *session, std::stringstream &data) override;

    private:
      HTTPRequest *httpRequest;
      bool processHTTPRequest(core::TCPSession *session, std::stringstream &data);
      enum Mode { REQUEST, IMF };
      Mode mode = REQUEST;
	         
   };
      
}

#endif
