Commit b12de31d authored by Damien Gerard's avatar Damien Gerard

Allow access to unknown and arbitrary raw headers

It may happen that the headers are not know in advance. One possible
scenario is that the caller provide a bunch of arbitrary headers with a
predefined prefix, acting as customer metadata, that the applications
needs to store somewhere for later reuse, in responses for example.

Those arbitrary might be used by the customer for many purposes, like
custom load-balancing or particular routing.
parent fcb83f89
......@@ -104,6 +104,10 @@ public:
std::vector<std::shared_ptr<Header>> list() const;
const std::unordered_map<std::string, Raw>& rawList() const {
return rawHeaders;
}
bool remove(const std::string& name);
void clear();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment