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

Method value

src/tscpp/api/Headers.cc:264–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264std::string
265Headers::value(const std::string &key, size_type index /* = 0 */)
266{
267 header_field_iterator iter = find(key);
268 if (iter == end()) {
269 return string();
270 }
271 if (index == 0) { // skip for loop
272 return *((*iter).begin());
273 }
274 for (; iter != end(); iter.nextDup()) {
275 if (index < (*iter).size()) {
276 return (*iter)[index];
277 }
278 index -= (*iter).size();
279 }
280 return string();
281}
282
283bool
284HeaderField::empty()

Callers 15

BuildTableMethod · 0.45
read_config_fileMethod · 0.45
populate_sni_actionsMethod · 0.45
loadFileMethod · 0.45
_ssl_read_bufferMethod · 0.45
loadMethod · 0.45
allocMethod · 0.45
allocMethod · 0.45
mainFunction · 0.45
parse_print_optsFunction · 0.45
invoke_rpcMethod · 0.45

Calls 3

stringClass · 0.85
beginMethod · 0.45
sizeMethod · 0.45

Tested by 2

allocMethod · 0.36
CB_handle_rpc_io_callFunction · 0.36