mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
remove PrettyAsyncJsonResponse
This commit is contained in:
@@ -89,24 +89,24 @@ class AsyncJsonResponse : public AsyncAbstractResponse {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class PrettyAsyncJsonResponse : public AsyncJsonResponse {
|
// class PrettyAsyncJsonResponse : public AsyncJsonResponse {
|
||||||
public:
|
// public:
|
||||||
PrettyAsyncJsonResponse(bool isArray = false)
|
// PrettyAsyncJsonResponse(bool isArray = false)
|
||||||
: AsyncJsonResponse{isArray} {
|
// : AsyncJsonResponse{isArray} {
|
||||||
}
|
// }
|
||||||
size_t setLength() {
|
// size_t setLength() {
|
||||||
_contentLength = measureJsonPretty(_root);
|
// _contentLength = measureJsonPretty(_root);
|
||||||
if (_contentLength) {
|
// if (_contentLength) {
|
||||||
_isValid = true;
|
// _isValid = true;
|
||||||
}
|
// }
|
||||||
return _contentLength;
|
// return _contentLength;
|
||||||
}
|
// }
|
||||||
size_t _fillBuffer(uint8_t * data, size_t len) {
|
// size_t _fillBuffer(uint8_t * data, size_t len) {
|
||||||
ChunkPrint dest(data, _sentLength, len);
|
// ChunkPrint dest(data, _sentLength, len);
|
||||||
serializeJsonPretty(_root, dest);
|
// serializeJsonPretty(_root, dest);
|
||||||
return len;
|
// return len;
|
||||||
}
|
// }
|
||||||
};
|
// };
|
||||||
|
|
||||||
typedef std::function<void(AsyncWebServerRequest * request, JsonVariant json)> ArJsonRequestHandlerFunction;
|
typedef std::function<void(AsyncWebServerRequest * request, JsonVariant json)> ArJsonRequestHandlerFunction;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user