- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for _endpoint_context_cache (0.49 sec)
-
fastapi/routing.py
# Cache for endpoint context to avoid re-extracting on every request _endpoint_context_cache: dict[int, EndpointContext] = {} def _extract_endpoint_context(func: Any) -> EndpointContext: """Extract endpoint context with caching to avoid repeated file I/O.""" func_id = id(func) if func_id in _endpoint_context_cache: return _endpoint_context_cache[func_id] try: ctx: EndpointContext = {}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 174.6K bytes - Viewed (0)