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

Function take_query_pair

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

------------------------------------------------------------------------------------ */ Get the next pair from the query string. Three cases - "name=value" - "name" - "name=" The latter two are distinguished by the value pointing at @c name.end() or one past.). */

Source from the content-addressed store, hash-verified

1199 The latter two are distinguished by the value pointing at @c name.end() or one past.).
1200*/
1201std::tuple<TextView, TextView>
1202take_query_pair(TextView &src)
1203{
1204 auto token = src.take_prefix_at("&;"_tv);
1205 auto name = token.take_prefix_at('=');
1206 return {name, token};
1207}
1208
1209std::tuple<TextView, TextView>
1210query_value_for(TextView query_str, TextView search_key, bool caseless_p)

Callers 1

query_value_forFunction · 0.85

Calls 1

take_prefix_atMethod · 0.80

Tested by

no test coverage detected