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

Function query_value_for

plugins/experimental/txn_box/plugin/src/ts_util.cc:1209–1219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1207}
1208
1209std::tuple<TextView, TextView>
1210query_value_for(TextView query_str, TextView search_key, bool caseless_p)
1211{
1212 while (query_str) {
1213 auto &&[name, value]{take_query_pair(query_str)};
1214 if ((!caseless_p && name == search_key) || (caseless_p && 0 == strcasecmp(name, search_key))) {
1215 return {name, value};
1216 }
1217 }
1218 return {};
1219}
1220
1221/* ------------------------------------------------------------------------------------ */
1222void

Callers 2

query_value_updateFunction · 0.85
extractMethod · 0.85

Calls 2

take_query_pairFunction · 0.85
strcasecmpFunction · 0.85

Tested by

no test coverage detected