This commit is contained in:
Proddy
2024-03-12 23:08:57 +01:00
parent 0bd57973c5
commit be6bb1de6a
4 changed files with 5 additions and 39 deletions

View File

@@ -145,20 +145,6 @@ class AsyncProgmemResponse : public AsyncAbstractResponse {
virtual size_t _fillBuffer(uint8_t * buf, size_t maxLen) override;
};
// added by proddy
class AsyncResponse : public AsyncAbstractResponse {
private:
const uint8_t * _content;
size_t _readLength;
public:
AsyncResponse(const String & contentType, const uint8_t * content, size_t len);
bool _sourceValid() const {
return true;
}
virtual size_t _fillBuffer(uint8_t * buf, size_t maxLen) override;
};
class cbuf;
class AsyncResponseStream : public AsyncAbstractResponse, public Print {