Lesson 6.2
Lookup, backtracking, and precedence
How lookup tries static, then param, then wildcard with backtracking, allocates the params object only on capture, and reports the allowed set on a method miss.
What you will build
- Trace a lookup that backtracks from a failed static descent into a param child.
- Apply static beats param beats wildcard at every node.
- Allocate params lazily and percent-decode only on a % byte.
- Return find's allowed variant on a method miss so the caller can tell 405 from 404.