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

Method count_values

src/proxy/hdrs/HdrUtils.cc:97–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97int
98HdrCsvIter::count_values(MIMEField *field, bool follow_dups)
99{
100 int count = 0;
101 auto val = get_first(field, follow_dups); // get index 0
102 while (val) {
103 val = get_next();
104 ++count;
105 }
106 return count;
107}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected