A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.

Dependents:   oldheating gps motorhome heating

Revision:
141:25047f31dbab
Parent:
140:9000ea70b220
Child:
144:6bd5c54efc7d
--- a/tcp/http/http.h	Wed Apr 10 10:07:06 2019 +0000
+++ b/tcp/http/http.h	Sat Apr 27 09:24:44 2019 +0000
@@ -18,6 +18,14 @@
 extern void   HttpAddInt64AsHex (int64_t value);
 extern void   HttpAddTm         (struct tm* ptm);
 
+extern void   HttpOk(const char* contentType, const char* cacheControl, const char* lastModifiedDate, const char* lastModifiedTime);
+extern char*  HttpOkCookieName;
+extern char*  HttpOkCookieValue;
+extern int    HttpOkCookieMaxAge;
+
+extern void   HttpNotFound      (void);
+extern void   HttpNotModified   (void);
+
 extern int    HttpRequestRead  (char *p, int len, char** ppMethod, char** ppPath, char** ppQuery, char** ppLastModified, char** ppCookies, int* pContentLength);
 
 extern char*  HttpCookiesSplit   (char* pCookies, char** ppName, char** ppValue);