MCPcopy
hub / github.com/fastapi/fastapi / handle

Method handle

fastapi/routing.py:2732–2740  ·  view source on GitHub ↗
(self, scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

2730 await self.default(scope, receive, send)
2731
2732 async def handle(self, scope: Scope, receive: Receive, send: Send) -> None:
2733 included_router = _get_scope_included_router(scope)
2734 if (
2735 isinstance(included_router, _IncludedRouter)
2736 and included_router.original_router is self
2737 ):
2738 await included_router._handle_selected(scope, receive, send)
2739 return
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)

Calls 3

appMethod · 0.95
_handle_selectedMethod · 0.80