24 lines
422 B
C++
24 lines
422 B
C++
#ifndef __HTTPHandler_h__
|
|
#define __HTTPHandler_h__
|
|
|
|
#include "Command.h"
|
|
#include "TCPSession.h"
|
|
#include "Log.h"
|
|
|
|
namespace http {
|
|
|
|
class HTTPHandler : public core::Command {
|
|
|
|
public:
|
|
int processCommand(std::string request, core::TCPSession *session, std::stringstream &data) override;
|
|
|
|
private:
|
|
enum Mode { REQUEST, IMFHEADER };
|
|
Mode mode = REQUEST;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|