[web_server] Fix v1 compilation on ESP-IDF by adding missing write method

This commit is contained in:
J. Nick Koston
2026-01-11 15:37:22 -10:00
parent 5ae46a4369
commit 1cf3a2bc47

View File

@@ -80,6 +80,7 @@ class AsyncResponseStream : public AsyncWebServerResponse {
void print(const std::string &str) { this->content_.append(str); }
void print(float value);
void printf(const char *fmt, ...) __attribute__((format(printf, 2, 3)));
void write(uint8_t c) { this->content_.push_back(static_cast<char>(c)); }
protected:
std::string content_;