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:
8:5779cee2e94a
Parent:
0:fdf9c2c5200f
Child:
10:c1c8276af541
--- a/HTTPRequestHandler.h	Wed Dec 03 13:34:20 2014 +0000
+++ b/HTTPRequestHandler.h	Mon Dec 08 12:49:53 2014 +0000
@@ -97,6 +97,15 @@
   
   int readLine(char* str, int maxLen);
 
+  typedef struct {
+    uint32_t size;  // size of buffer (1024)
+    uint32_t num;   // number of characters in buffer
+    uint32_t pos;   // next position to read
+    char buff[1024];
+  } read_cache_t;
+
+  int readLineCached(char* str, int maxLen, read_cache_t* cache);
+
 };
 
 #endif