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

Method getHandler

plugins/esi/lib/HandlerManager.cc:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78SpecialIncludeHandler *
79HandlerManager::getHandler(Variables &esi_vars, Expression &esi_expr, HttpDataFetcher &fetcher, const std::string &id) const
80{
81 FunctionHandleMap::const_iterator iter = _id_to_function_map.find(id);
82 if (iter == _id_to_function_map.end()) {
83 TSError("[%s::%s] handler id [%s] does not map to any loaded object", CLASS_NAME, __FUNCTION__, id.c_str());
84 return nullptr;
85 }
86 return (*(iter->second))(esi_vars, esi_expr, fetcher, id);
87}
88
89HandlerManager::~HandlerManager()
90{

Callers 1

_preprocessMethod · 0.45

Calls 4

TSErrorFunction · 0.50
findMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected