meltwater / served

A C++11 RESTful web server library
MIT License
710 stars 174 forks source link

how can I iterate over the available request headers? #25

Open nikhedonia opened 7 years ago

nikhedonia commented 7 years ago

As far as I can see the only way to access headers is via request::headers(std::string key). It would be nice to have a list of available keys.

It would sufficient to expose the const-iterators of request::header_list. Shall I make a PR ?

Jeffail commented 7 years ago

Hey @nikhedonia. Sounds good, would be happy to take a pull request.