-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
feat(webserver): Middleware with default middleware for cors, authc, curl-like logging #10186
Conversation
👋 Hello mathieucarbou, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
0bc70ee
to
cf292b5
Compare
Test Results 62 files 62 suites 16m 34s ⏱️ For more details on these failures, see this check. Results for commit 6b1e5d0. ♻️ This comment has been updated with latest results. |
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]
|
@mathieucarbou Do you see the possibility to make this enhancement optional? |
I saw that and I was surprised by it... I don't feel to have written 2k of code... |
bc2dc4b
to
6607a91
Compare
Adding a ref to: #10221 (comment) |
31899b0
to
9617be6
Compare
7f62ca4
to
cf0f79a
Compare
f8d4eea
to
4668e78
Compare
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. Tested and it works as expected. Just a couple nitpicks.
@lucasssvaz : thanks! I will update the PR soon. |
09ddacb
to
09a9d09
Compare
@mathieucarbou Also, as there are some changes to the WebServer. Maybe it would be better to target branch |
Yes that would be better. What do you think about the 3 bullet points above ? Could I also switch to std::list ? |
09a9d09
to
b3d624e
Compare
I think it should be fine now that we are targeting v3.1.x as long as the flash usage increase is not very significant. There are too many changes from IDF recently that increased flash usage a lot and we are trying to optimize things for space. What do you think @me-no-dev ? |
…curl-like logging
b3d624e
to
6b1e5d0
Compare
@mathieucarbou Could you please reopen this targeting |
FYI, for next time, before deleting branches, just know that there is a github option to edit PRs and change the target branch. This allows keeping the history of PRs instead of having to recreate them. Here since the target branch was deleted, github closed the PR without a way to re-open it and change the target branch. |
@mathieucarbou I did not expect the PR to be closed. The one for the libs was not closed and I switched the target branch after I deleted the 3.1.x one |
Interesting what made this PR different. Maybe the fact that we were not given rights to edit it? |
Oh, that's right: "Allow edits and access to secrets by maintainers" was not checked, I just checked it now. Why ? I do not know. This is always an option I usually keep on (I hate to block people or being blocked by this option). Definitley, that must be this thing. Do you know if this could be unchecked by default with the required CLA agreement ? |
CLA bot comes after the PR is created, so I doubt that was it. GH has been a bit strange on a few fronts lately, so not unlikely that something else was the cause |
trying to reopen |
It's not allowing me to reopen it 😦 |
yeah, same ;-) no worry, I have rebased already, I am doing another review (always good to re-read after a while). Will push in a few. |
"Edit" is off when the PR is opened from an ORG repository. |
This PR improves WebServer with the following additions:
As discussed in #10185, I tested the example thanks to a pio config.
Ideally it would be nice if @me-no-dev and @ayushsharma82 could review this PR, both were involved in these parts.