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

Method Records

src/cripts/Configs.cc:27–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25std::unordered_map<cripts::string_view, const Records *> Records::_gRecords;
26
27Records::Records(const cripts::string_view name)
28{
29 TSOverridableConfigKey key;
30 TSRecordDataType type;
31
32 if (TSHttpTxnConfigFind(name.data(), name.size(), &key, &type) == TS_SUCCESS) {
33 _name = name;
34 _key = key;
35 _type = type;
36 } else {
37 CFatal("[Records]: Invalid configuration variable '%.*s'", static_cast<int>(name.size()), name.data());
38 }
39}
40
41Records::ValueType
42Records::_get(const cripts::Context *context) const

Callers

nothing calls this directly

Calls 3

TSHttpTxnConfigFindFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected