I need to send large (300k) HTTP responses from my Mongoose OS/ESP32 based application. I don’t have 300k contiguous free heap available.
It appears that all the mg_send_* calls buffer into memory (when servicing the HTTP request, I get the E:M log messages indicating that along the line an attempt is being made to allocate > 83000 bytes).
Is there a way to get Mongoose to send the response in smaller pieces?