-
Can someone give me an example as to how to iterate through the headers in a request? I want to gather some information in the .upgrade handler. I am very proficient with C but not so with the more complicated aspects of C++. I see that there is a HeaderIterator structure defined in HttpParser.h but I'm just not sure how to use it. |
Beta Was this translation helpful? Give feedback.
Answered by
ghost
Jan 1, 2021
Replies: 2 comments 4 replies
-
https://unetworking.github.io/uWebSockets.js/generated/interfaces/httprequest.html as a quick help. |
Beta Was this translation helpful? Give feedback.
1 reply
-
HttpRequest implements an iterator, so you can just do for (auto header : req) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HttpRequest implements an iterator, so you can just do for (auto header : req)