MCPcopy
hub / github.com/fastapi/fastapi / _frontend_path_specificity

Function _frontend_path_specificity

fastapi/routing.py:1844–1847  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

1842
1843
1844def _frontend_path_specificity(path: str) -> int:
1845 if path == "/":
1846 return 0
1847 return len(path)
1848
1849
1850def _get_resolved_absolute_path(path: str | os.PathLike[str]) -> str:

Callers 2

matches_with_pathMethod · 0.85
_matchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…