Open
Description
router.cpp示例中:
libhv/examples/httpd/router.cpp
Lines 131 to 134 in 0325f2d
这里路由占位符的解析是在Handler::restful中调用了HttpContext的param,即HttpRequest的GetParam:
libhv/examples/httpd/handler.cpp
Lines 171 to 179 in 0325f2d
这个方法是查询参数的解析,这样合在一起会导致这里占位符的解析覆盖了查询参数的解析,如对于/api/test/{str},会导致 GET http://ip:port/api/test/xxx?str=yyy 后,服务器获取查询参数param("str")时,xxx会覆盖yyy
Metadata
Metadata
Assignees
Labels
No labels