MCPcopy
hub / github.com/fastapi/fastapi / effective_route_contexts

Method effective_route_contexts

fastapi/routing.py:1777–1782  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1775 await route.handle(scope, receive, send)
1776
1777 def effective_route_contexts(self) -> Iterator[_EffectiveRouteContext]:
1778 for candidate in self.effective_candidates():
1779 if isinstance(candidate, _IncludedRouter):
1780 yield from candidate.effective_route_contexts()
1781 else:
1782 yield candidate
1783
1784 def url_path_for(self, name: str, /, **path_params: Any) -> Any:
1785 for route_context in self.effective_route_contexts():

Calls 1

effective_candidatesMethod · 0.95