-
Notifications
You must be signed in to change notification settings - Fork 7.6k
webserver :Please add chunkedResponseModeStart / chunkedResponseFinalize #5080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks @fanfanlatulipe26 . We will take a look and consider implementation. |
Status of this? |
I just updated the code of the derivative class |
Any progress here? |
Hello, no progress. I'm adding this to next release and we will triage this and let you know about the resolution. |
Great news! |
I really need this, I need to answer a gigantic (100mb) text file that is dynamically generated from memory. With esp8266 I sent with sendContent_P a few lines at a time and it worked great. I can't do this with esp32. |
@AlefRosa |
Do you know how to use the RequestHandler (server->addHandler(new ... ) with your derived class? Btw, the ESP32 Request handler uses different arguments fr its methods :( |
An other missing method is: void send(int code, const char *content_type, const char *content, size_t contentLength) |
Sorry, I never used RequestHandler . I had a look at the source code for RequestHandler .h and the ESP8266 version is really more C++ that the ESP32 one. I must admit that I am not C++ expert ... Didn't find any examples. |
@fanfanlatulipe26 thank you very much, i got it yesterday. As I need to use asyncwebserver, I studied it further and managed to use request response using chunk method. thank you so much again! Now I'm managing to generate 10mb files from memory registers and send them in parts as I make them. |
Also eagerly awaiting this important feature! Thanks @fanfanlatulipe26 -- that code worked great. I had to add an additional constructor at the top:
|
Thanks @chconnor for the tip. I updated the code in the repository BaliseDGAC_GPS_Logger that I referenced above. It may help some one. |
Thanks for sharing it is great for solving some issues in the progress of migration from esp8266 to esp32!! |
Postponing to 3.1.0 Milestone, we will cover this during Webserver refactoring |
Hello, Due to the overwhelming volume of issues currently being addressed, we have decided to close the previously received tickets. If you still require assistance or if the issue persists, please don't hesitate to reopen the ticket. Thanks. |
@VojtechBartoska -- did you folks happen to get this done in the Webserver refactoring, or should it be reopened? (I didn't see it in the closed issues for the milestones linked above, or for 3.2.0.) |
I have confirmed that WebServer.h still does not have this included. I don't have permission to reopen this issue -- perhaps someone else can? |
Description:
webserver :Please add chunkedResponseModeStart / chunkedResponseFinalize
These functions were added in a recent release for ESP8266WebServer and it will be nice to have them in the upcomming release for ESP32. If not , porting from ESP8266 to ESP32 becomes cumbersome.
I developed a small derivated class to get them in rhe ESP32 environment. If it can help .....
Sketch:
The text was updated successfully, but these errors were encountered: