WiFi WebServer for ESP8266
Fork of ESP8266_WebServer by
Diff: ESP8266_WebServer.h
- Revision:
- 3:4ef7db7a95a7
- Parent:
- 2:6079554681d6
- Child:
- 4:759de84e790b
- Child:
- 5:48b7fd921bef
diff -r 6079554681d6 -r 4ef7db7a95a7 ESP8266_WebServer.h --- a/ESP8266_WebServer.h Thu Jan 01 14:59:13 2015 +0000 +++ b/ESP8266_WebServer.h Thu Jan 01 16:27:58 2015 +0000 @@ -12,6 +12,8 @@ const char mimeCSS[] = "text/css"; const char mimeJPEG[] = "image/jpeg"; const char mimePNG[] = "image/png"; +const char mimeGIF[] = "image/gif"; +const char mimeText[] = "text/plain"; class ESP8266_WebRequest { @@ -65,7 +67,10 @@ void Send404Error(int linkID); void SendReply(int linkID, std::string reply, const char* mimeType); void SendReply(int linkID, char const* reply, int replySize, const char* mimeType); + void SendReply(int linkID, char const* reply, int replySize, const char* mimeType, int maxAge); + void SendReply(int linkID, char const* reply, const char* mimeType, int maxAge); void SendFile(int linkID, FileHandle* file, const char* mimeType); + void SendFile(int linkID, FileHandle* file, const char* mimeType, int maxAge); }; #endif \ No newline at end of file