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 EmbeddedArtists AB

Revision:
10:c1c8276af541
Parent:
0:fdf9c2c5200f
--- a/Handler/SimpleHandler.h	Mon Jan 26 10:10:46 2015 +0100
+++ b/Handler/SimpleHandler.h	Wed Oct 23 06:58:32 2019 +0000
@@ -29,11 +29,11 @@
 class SimpleHandler : public HTTPRequestHandler
 {
 public:
-  SimpleHandler(const char* rootPath, const char* path, TCPSocketConnection* pTCPSocketConnection);
+  SimpleHandler(const char* rootPath, const char* path, TCPSocket* pTCPSocketConnection);
   virtual ~SimpleHandler();
 
 //protected:
-  static inline HTTPRequestHandler* inst(const char* rootPath, const char* path, TCPSocketConnection* pTCPSocketConnection) { return new SimpleHandler(rootPath, path, pTCPSocketConnection); } //if we ever could do static virtual functions, this would be one
+  static inline HTTPRequestHandler* inst(const char* rootPath, const char* path, TCPSocket* pTCPSocketConnection) { return new SimpleHandler(rootPath, path, pTCPSocketConnection); } //if we ever could do static virtual functions, this would be one
 
   virtual void doGet();
   virtual void doPost();