MCPcopy Index your code
hub / github.com/fastapi/fastapi / url_path_for

Method url_path_for

fastapi/routing.py:1784–1790  ·  view source on GitHub ↗
(self, name: str, /, **path_params: Any)

Source from the content-addressed store, hash-verified

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():
1786 try:
1787 return route_context.url_path_for(name, **path_params)
1788 except routing.NoMatchFound:
1789 pass
1790 raise routing.NoMatchFound(name, path_params)
1791
1792
1793def _iter_included_route_candidates(routes: Sequence[BaseRoute]) -> Iterator[BaseRoute]:

Callers

nothing calls this directly

Calls 2

url_path_forMethod · 0.45

Tested by

no test coverage detected