HTTPServer/HTTPConnection.h
2024-08-22 16:13:12 -07:00

24 lines
432 B
C++

#ifndef __HTTPConnection_h__
#define __HTTPConnection_h__
#include "TCPSession.h"
#include "Log.h"
namespace http {
class HTTPConnection : public core::TCPSession {
public:
HTTPConnection(core::EPoll &ePoll, core::TCPServer *server) : TCPSession(ePoll, server, "HTTP Connection") {}
void onDataReceived(coreutils::ZString &data) override {
protocol(data);
send();
}
};
}
#endif