OpenBMC:BmcWeb 处理http请求2 查找路由对象
OpenBMC:BmcWeb 处理http请求1 生成Request和AsyncResp对象_bmc web-CSDN博客
当接收到http请求,并且完成解析后,调用了App::handle处理请求
而App::handle又调用了router.handle(req, asyncResp);来处理请求
1.Router::handle
void handle(const std::shared_ptr<Request>& req,
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
{
FindRouteResponse foundRoute = findRoute(*req);
...
}
struct FindRout