Added getSize() to know JSON buffer size (#151)
* Added doc for ws.enable and ws.enabled * added getSize()
This commit is contained in:
parent
09dde693ba
commit
120984e6d2
|
@ -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 ) ;
|
||||
|
|
Loading…
Reference in New Issue