Added getSize() to know JSON buffer size (#151)

* Added doc for ws.enable and ws.enabled

* added getSize()
This commit is contained in:
Charles
2017-04-06 10:10:59 +02:00
committed by Me No Dev
parent 09dde693ba
commit 120984e6d2

View File

@@ -72,6 +72,8 @@ class AsyncJsonResponse: public AsyncAbstractResponse {
return _contentLength;
}
size_t getSize() { return _jsonBuffer.size(); }
size_t _fillBuffer(uint8_t *data, size_t len){
ChunkPrint dest(data, _sentLength, len);
_root.printTo( dest ) ;