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

Method configStringGet

src/tscpp/api/Transaction.cc:141–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141bool
142Transaction::configStringGet(TSOverridableConfigKey conf, std::string &value)
143{
144 const char *svalue;
145 int length;
146 bool zret = TS_SUCCESS == TSHttpTxnConfigStringGet(state_->txn_, conf, &svalue, &length);
147 if (zret) {
148 value.assign(svalue, length);
149 } else {
150 value.clear();
151 }
152 return zret;
153}
154
155bool
156Transaction::configFind(std::string const &name, TSOverridableConfigKey *conf, TSRecordDataType *type)

Callers

nothing calls this directly

Calls 3

TSHttpTxnConfigStringGetFunction · 0.85
assignMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected