-
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.
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.
-
HttpRequest implements an iterator, so you can just do for (auto header : req) |
Beta Was this translation helpful? Give feedback.
HttpRequest implements an iterator, so you can just do for (auto header : req)