Closed siddhya closed 6 months ago
Basically you can't, your controller is called only when complete requests arriving, drogon use the mmap api of files for large request, so large data requests don't occupy memory too much.
That is too bad since it is causing performance drop. If I have to implement it in drogon any pointers about how to go about it?
you need to modify the HttpServer class
I am sending large data ~1GB using a PUT request to the drogon server. In my PUT handler I want to received the data as it arrives (instead of waiting for the whole 1GB) and write to a file. How do I do that?
template <> inline Params drogon::fromRequest(const HttpRequest &req) { params.body = req.getBody(); return params; };