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

Method matches

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

Source from the content-addressed store, hash-verified

1234 )
1235
1236 def matches(self, scope: Scope) -> tuple[Match, Scope]:
1237 effective_context = _get_scope_effective_route_context(scope)
1238 if effective_context is not None and effective_context.original_route is self:
1239 match, child_scope = effective_context.matches(scope)
1240 else:
1241 match, child_scope = super().matches(scope)
1242 if match != Match.NONE:
1243 child_scope["route"] = self
1244 return match, child_scope
1245
1246 async def handle(self, scope: Scope, receive: Receive, send: Send) -> None:
1247 effective_context = _get_scope_effective_route_context(scope)

Callers 6

matchesMethod · 0.45
matchesMethod · 0.45
_matchMethod · 0.45
matchesMethod · 0.45
appMethod · 0.45
_match_low_priorityMethod · 0.45

Calls 1

Tested by

no test coverage detected