MCPcopy Index your code
hub / github.com/fastapi/fastapi / matches

Method matches

fastapi/routing.py:2099–2101  ·  view source on GitHub ↗
(self, scope: Scope)

Source from the content-addressed store, hash-verified

2097 )
2098
2099 def matches(self, scope: Scope) -> tuple[Match, Scope]:
2100 match, child_scope, _ = self._match(scope, prefix="")
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)

Callers

nothing calls this directly

Calls 1

_matchMethod · 0.95

Tested by

no test coverage detected