1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

add ESP8266WebServer::sendContent_P with 'size_t size' argument for binary content

This commit is contained in:
Martin Ayotte
2015-09-06 13:27:12 -04:00
parent 389107f09d
commit 82748a872c
2 changed files with 30 additions and 0 deletions

View File

@ -95,6 +95,7 @@ public:
void sendHeader(const String& name, const String& value, bool first = false);
void sendContent(const String& content);
void sendContent_P(PGM_P content);
void sendContent_P(PGM_P content, size_t size);
template<typename T> size_t streamFile(T &file, const String& contentType){
setContentLength(file.size());