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

Method getContextValue

src/tscpp/api/Transaction.cc:231–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231std::shared_ptr<Transaction::ContextValue>
232Transaction::getContextValue(const std::string &key)
233{
234 std::shared_ptr<Transaction::ContextValue> return_context_value;
235 map<string, std::shared_ptr<Transaction::ContextValue>>::iterator iter = state_->context_values_.find(key);
236 if (iter != state_->context_values_.end()) {
237 return_context_value = iter->second;
238 }
239
240 return return_context_value;
241}
242
243void
244Transaction::setContextValue(const std::string &key, std::shared_ptr<Transaction::ContextValue> value)

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected