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

Method matches

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

Source from the content-addressed store, hash-verified

2740 await self.app(scope, receive, send)
2741
2742 def matches(self, scope: Scope) -> tuple[Match, Scope]:
2743 included_router = _get_scope_included_router(scope)
2744 if (
2745 isinstance(included_router, _IncludedRouter)
2746 and included_router.original_router is self
2747 ):
2748 match, child_scope, _, _ = included_router._match(scope)
2749 return match, child_scope
2750 return Match.NONE, {}
2751
2752 def _iter_low_priority_routes(
2753 self,

Calls 2

_matchMethod · 0.45