MCPcopy
hub / github.com/fastapi/fastapi / matches_with_prefix

Method matches_with_prefix

fastapi/routing.py:2103–2105  ·  view source on GitHub ↗
(self, scope: Scope, prefix: str)

Source from the content-addressed store, hash-verified

2101 return match, child_scope
2102
2103 def matches_with_prefix(self, scope: Scope, prefix: str) -> tuple[Match, Scope]:
2104 match, child_scope, _ = self._match(scope, prefix=prefix)
2105 return match, child_scope
2106
2107 def _match(
2108 self, scope: Scope, *, prefix: str

Callers 2

matchesMethod · 0.80

Calls 1

_matchMethod · 0.95

Tested by 1