- Notifications
You must be signed in to change notification settings - Fork 7.8k
feat(webserver): add support for chunked HTTP responses Fixes #5080#11894
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
ritesh006 commented Oct 3, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
CLAassistant commented Oct 3, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
github-actionsbot commented Oct 3, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
👋 Hello ritesh006, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| voidWebServer::sendChunk(constchar* data, size_t length){ | ||
| if (!_chunkedResponseActive) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log_e that chunk response has not been started
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
me-no-dev commented Oct 3, 2025
Please also add a small example to showcase the usage |
c1a5c63 to bf6aed6Compareto WebServer library for chunked HTTP responses
bf6aed6 to f4f8762Compareritesh006 commented Oct 3, 2025
Ready for Review |
github-actionsbot commented Oct 3, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Test Results 76 files 76 suites 13m 52s ⏱️ Results for commit dfaa04b. ♻️ This comment has been updated with latest results. |
github-actionsbot commented Oct 3, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ritesh006 commented Oct 4, 2025
Hi @me-no-dev May I please know when this commit is planned to be merged? |
me-no-dev commented Oct 4, 2025
@ritesh006 let's give a chance for others to review as well. It will be part of next release |
ritesh006 commented Oct 4, 2025
Yes thank so much |
SuGlider left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good! Thanks @ritesh006 for the PR!
$ curl -i esp32_chunk_resp.local:80 HTTP/1.1 200 OK Content-Type: text/plain Accept-Ranges: none Transfer-Encoding: chunked Connection: close 10... 9... 8... 7... 6... 5... 4... 3... 2... 1... DONE! This example demonstrates how to send an HTTP response using chunks with an ESP32 server. It includes setup for WiFi, MDNS, and handles HTTP requests with chunked responses.
Uh oh!
There was an error while loading. Please reload this page.
ritesh006 commented Oct 5, 2025
Thank You @SuGlider |
me-no-dev commented Oct 6, 2025
@lucasssvaz PTAL |
lucasssvaz left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
9d44061 into espressif:masterUh oh!
There was an error while loading. Please reload this page.
Enhance the ESP32 WebServer library by introducing native support for chunked transfer encoding. This allows streaming large or dynamic content efficiently, improving scalability and performance. Adds three main methods: chunkedResponseModeStart(), sendChunk(), and chunkedResponseFinalize() for easy, reliable implementation of chunked responses
Fixes#5080