| 510 | |
| 511 | template <class T> |
| 512 | void |
| 513 | captureWholeHeaders(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 | |
| 526 | template <class T> |
| 527 | void |