MCPcopy
hub / github.com/fastapi/fastapi / matches

Method matches

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

Source from the content-addressed store, hash-verified

815 )
816
817 def matches(self, scope: Scope) -> tuple[Match, Scope]:
818 match, child_scope = super().matches(scope)
819 if match != Match.NONE:
820 child_scope["route"] = self
821 return match, child_scope
822
823
824_FASTAPI_SCOPE_KEY = "fastapi"

Callers

nothing calls this directly

Calls 1

matchesMethod · 0.45

Tested by

no test coverage detected