-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Consider moving HeaderMap to STL iterators #1851
Copy link
Copy link
Closed
Labels
enhancementFeature requests. Not bugs or questions.Feature requests. Not bugs or questions.stalestalebot believes this issue/PR has not been touched recentlystalebot believes this issue/PR has not been touched recently
Description
The Http::HeaderMap interface supports iteration via callback via the iterate() and iterateReverse() methods, each of which takes a function pointer and a context and calls the function for each header in the HeaderMap. Since iterate() and iterateReverse() are implemented using C++ iterators, it might make more sense to expose these externally as it offers calling code more flexibility.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementFeature requests. Not bugs or questions.Feature requests. Not bugs or questions.stalestalebot believes this issue/PR has not been touched recentlystalebot believes this issue/PR has not been touched recently