Lines Matching refs:router
53 Router router;
56 router.add_route(p.pattern, p.idx);
61 idx = router.match(StringRef::from_lit("nghttp2.org"),
66 idx = router.match(StringRef::from_lit("nghttp2.org"),
71 idx = router.match(StringRef::from_lit("nghttp2.org"),
76 idx = router.match(StringRef::from_lit("nghttp2.org"),
81 idx = router.match(StringRef::from_lit("nghttp2.org"),
87 idx = router.match(StringRef::from_lit("nghttp2.org"),
92 idx = router.match(StringRef::from_lit("www2.nghttp2.org"),
97 idx = router.match(StringRef{}, StringRef::from_lit("/alpha"));
112 Router router;
115 router.add_route(p.pattern, p.idx, p.wildcard);
118 CU_ASSERT(0 == router.match(StringRef::from_lit("nghttp2.org"),
121 CU_ASSERT(1 == router.match(StringRef::from_lit("nghttp2.org"),
124 CU_ASSERT(1 == router.match(StringRef::from_lit("nghttp2.org"),
127 CU_ASSERT(2 == router.match(StringRef::from_lit("nghttp2.org"),
130 CU_ASSERT(2 == router.match(StringRef::from_lit("nghttp2.org"),
133 CU_ASSERT(3 == router.match(StringRef::from_lit("nghttp2.org"),
136 CU_ASSERT(4 == router.match(StringRef::from_lit("nghttp2.org"),
139 CU_ASSERT(5 == router.match(StringRef::from_lit("nghttp2.org"),
142 CU_ASSERT(5 == router.match(StringRef::from_lit("nghttp2.org"),
154 Router router;
157 router.add_route(p.pattern, p.idx);
166 idx = router.match_prefix(&nread, &node,
172 idx = router.match_prefix(&nread, &node,
178 idx = router.match_prefix(&nread, &node, StringRef::from_lit("ahpla.ovarb"));