MCPcopy Create free account
hub / github.com/apache/trafficserver / captureWholeHeaders

Function captureWholeHeaders

plugins/cachekey/cachekey.cc:512–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510
511template <class T>
512void
513captureWholeHeaders(const ConfigHeaders &config, const String &name, const String &value, T &captures)
514{
515 CacheKeyDebug("processing header %s", name.c_str());
516 if (config.toBeAdded(name)) {
517 String header;
518 header.append(name).append(":").append(value);
519 captures.insert(header);
520 CacheKeyDebug("adding header '%s: %s'", name.c_str(), value.c_str());
521 } else {
522 CacheKeyDebug("failed to find header '%s'", name.c_str());
523 }
524}
525
526template <class T>
527void

Callers

nothing calls this directly

Calls 4

toBeAddedMethod · 0.80
c_strMethod · 0.45
appendMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected