OpenBMC:BmcWeb添加路由1 getParameterTag
BmcWeb对于路由的设计其实是参考了Crow
BMCWEB_ROUTE(app, "/upload/image/<str>")
.privileges({
{"ConfigureComponents", "ConfigureManager"}})
.methods(boost::beast::http::verb::post, boost::beast::http::verb::put)(
[](const crow::Request& req,
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
const std::string&) { uploadImageHandler(req, asyncResp); });
之前已经详细的分析了Crow的设计:
Crow:黑魔法 添加路由1 get_parameter_tag路由参数的转换_使用crow框架编写get接口并有参数-CSDN博客