Poco C++ HTTPResponse how can i get the entire header map of a response? -
so here class need cache entire header map. figured should extract how.
how can this, need iterate them this, or can them @ once?
i intend store header map in cache :
lrupersistentcache<string, pair<headermap, string > > *clientcache;
you can create namevaluecollection (it's map-like httpresponse's parent) httpresponse:
httpresponse response; // ... namevaluecollection nvc(response); lrupersistentcache<string, namevaluecollection> clientcache(100); clientcache.add("myresponse", nvc); // ...