-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add the option to add multiple headers with the same name #48
Conversation
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.
comments above ;-)
Hello! With adding support for multiple headers with the same name, it might be handy to have a method that removes a single instance of the header type. Right now, the |
This would break the API if we modify, so would need to be added as a second method. I see a valid point in have something like: Do you know some use cases for that ? For now, this could be implemented by getting the @me-no-dev : maybe we add |
I am not sure if I can find any real life scenario, when that feature is irreplaceable. In most cases it would be enough to just not add the particular header, if you have full control over your code. The feature of deleting single header occurence might be useful when integrating some 3rd party library into our codebase, which set headers. You might want to cancel some of them later in the code. Or on the other side, if you're the author of a 3rd party library using ESPAsyncWebServer, you might want to cancel user defined headers, like cookies or specific caching settings. |
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.
added a comment to not forget about adding a Header.ino
example
32a29b4
to
36540eb
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.
Juste a little comment line to change or remove.
I am approving so that we can merge after :-)
There are some exceptions that are always allowed only once
d03ef70
to
e171e8f
Compare
There are some exceptions that are always allowed only once.
Fixes: #47