MCPcopy Create free account
hub / github.com/fastapi/fastapi / matches

Method matches

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

Source from the content-addressed store, hash-verified

2024 )
2025
2026 def matches(self, scope: Scope) -> tuple[Match, Scope]:
2027 return self.matches_with_path(scope, self.path)
2028
2029 def matches_with_path(self, scope: Scope, path: str) -> tuple[Match, Scope]:
2030 if scope["type"] != "http":

Callers

nothing calls this directly

Calls 1

matches_with_pathMethod · 0.95

Tested by

no test coverage detected