|
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. |
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. |
1 reply
|
HttpRequest implements an iterator, so you can just do for (auto header : req) |
3 replies
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)