Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for _extract_endpoint_context (0.18 sec)

  1. fastapi/routing.py

        return merged_lifespan  # type: ignore[return-value]
    
    
    # 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:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
Back to top