OpenBMC:BmcWeb 处理http请求2 查找路由对象-CSDN博客
findRouteByPerMethod实际上是调用了perMethod.trie.find(url);来查找路由对象的
class Trie
{struct FindResult{unsigned ruleIndex;std::vector<std::string> params;};FindResult findHelper(const std::string_view reqUrl, const Node& node,std::vector<std::string>& params) const{if (reqUrl.empty()){return {node.ruleIndex, params};}if (node.stringParamChild != 0U){size_t epos