Home
last modified time | relevance | path

Searched refs:findRoute (Results 1 – 2 of 2) sorted by relevance

/openbmc/bmcweb/test/http/
H A Drouter_test.cpp39 EXPECT_EQ(router.findRoute(req).allowHeader, ""); in TEST()
40 EXPECT_EQ(router.findRoute(req).route.rule, nullptr); in TEST()
45 EXPECT_EQ(router.findRoute(req).allowHeader, "GET"); in TEST()
46 EXPECT_NE(router.findRoute(req).route.rule, nullptr); in TEST()
49 EXPECT_EQ(router.findRoute(patchReq).route.rule, nullptr); in TEST()
54 EXPECT_EQ(router.findRoute(req).allowHeader, "GET, PATCH"); in TEST()
55 EXPECT_NE(router.findRoute(req).route.rule, nullptr); in TEST()
56 EXPECT_NE(router.findRoute(patchReq).route.rule, nullptr); in TEST()
/openbmc/bmcweb/http/
H A Drouting.hpp520 FindRouteResponse findRoute(const Request& req) const in findRoute() function in crow::Router
522 FindRouteResponse findRoute; in findRoute() local
537 if (!findRoute.allowHeader.empty()) in findRoute()
539 findRoute.allowHeader += ", "; in findRoute()
542 findRoute.allowHeader += httpVerbToString(thisVerb); in findRoute()
548 return findRoute; in findRoute()
553 return findRoute; in findRoute()
560 findRoute.route = route; in findRoute()
563 return findRoute; in findRoute()
607 FindRouteResponse foundRoute = findRoute(*req); in handle()