Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for EndpointContext (0.04 sec)

  1. fastapi/exceptions.py

            body: Any = None,
            endpoint_ctx: Optional[EndpointContext] = None,
        ) -> None:
            super().__init__(errors, endpoint_ctx=endpoint_ctx)
            self.body = body
    
    
    class WebSocketRequestValidationError(ValidationException):
        def __init__(
            self,
            errors: Sequence[Any],
            *,
            endpoint_ctx: Optional[EndpointContext] = None,
        ) -> None:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  2. fastapi/routing.py

    _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)
Back to top