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

Method _processIncludeTag

plugins/esi/lib/EsiParser.cc:427–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427bool
428EsiParser::_processIncludeTag(const string &data, size_t curr_pos, size_t end_pos, DocNodeList &node_list) const
429{
430 Attribute src_info;
431 if (!Utils::getAttribute(data, SRC_ATTR_STR, curr_pos, end_pos, src_info)) {
432 TSError("[%s] Could not find src attribute", __FUNCTION__);
433 return false;
434 }
435 node_list.push_back(DocNode(DocNode::TYPE_INCLUDE));
436 node_list.back().attr_list.push_back(src_info);
437 Dbg(dbg_ctl, "[%s] Added include tag with url [%.*s]", __FUNCTION__, src_info.value_len, src_info.value);
438 return true;
439}
440
441bool
442EsiParser::_processSpecialIncludeTag(const string &data, size_t curr_pos, size_t end_pos, DocNodeList &node_list) const

Callers

nothing calls this directly

Calls 4

getAttributeFunction · 0.85
DocNodeClass · 0.85
TSErrorFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected