Adaptation of the HttpServer by user yueee_yt. This version has improved handling of the HTTP headers (**NOTE**: There are limitations with this implementation and it is not fully functional. Use it only as a starting point.)
Dependents: DMSupport DMSupport DMSupport DMSupport
Fork of DM_HttpServer by
Diff: HTTPRequestHandler.h
- Revision:
- 10:c1c8276af541
- Parent:
- 8:5779cee2e94a
diff -r 10b4d4075fbb -r c1c8276af541 HTTPRequestHandler.h --- a/HTTPRequestHandler.h Mon Jan 26 10:10:46 2015 +0100 +++ b/HTTPRequestHandler.h Wed Oct 23 06:58:32 2019 +0000 @@ -46,7 +46,7 @@ { public: ///Instantiated by the HTTP Server - HTTPRequestHandler(const char* rootPath, const char* path, TCPSocketConnection* pTCPSocketConnection); + HTTPRequestHandler(const char* rootPath, const char* path, TCPSocket* pTCPSocketConnection); virtual ~HTTPRequestHandler(); //protected: @@ -82,7 +82,7 @@ void writeHeaders(); //Called at the first writeData call //**void onTCPSocketEvent(/**TCPSocketEvent e**/); - TCPSocketConnection* m_pTCPSocketConnection; + TCPSocket* m_pTCPSocketConnection; map<string, string> m_reqHeaders; map<string, string> m_respHeaders; string m_rootPath;