pub fn matches_route_pattern(pattern: &str, path: &str) -> boolExpand description
true when path is served by pattern.
A trailing * matches the bare prefix and every /-delimited descendant;
anything else is an exact match. Never a raw starts_with — /application
must not reach a /app/* route.
Mirrors mesofact::route_headers::matches_route_pattern and the Worker’s
matchesRoutePattern byte for byte, including the deliberate inclusion of
the BARE prefix: /app is the URL a link points at, it resolves to
app/index.html through the clean-URL rule, and an entry that skipped it
would miss the very document it exists for.