served icon indicating copy to clipboard operation
served copied to clipboard

how can I iterate over the available request headers?

Open nikhedonia opened this issue 7 years ago • 1 comments

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 ?

nikhedonia avatar Aug 16 '17 12:08 nikhedonia

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

Jeffail avatar Aug 16 '17 12:08 Jeffail