Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fastapi_function_astack (0.07 sec)

  1. fastapi/dependencies/utils.py

        assert isinstance(request_astack, AsyncExitStack), (
            "fastapi_inner_astack not found in request scope"
        )
        function_astack = request.scope.get("fastapi_function_astack")
        assert isinstance(function_astack, AsyncExitStack), (
            "fastapi_function_astack not found in request scope"
        )
        values: dict[str, Any] = {}
        errors: list[Any] = []
        if response is None:
            response = Response()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
  2. fastapi/routing.py

                async with AsyncExitStack() as request_stack:
                    scope["fastapi_inner_astack"] = request_stack
                    async with AsyncExitStack() as function_stack:
                        scope["fastapi_function_astack"] = function_stack
                        response = await f(request)
                    await response(scope, receive, send)
                    # Continues customization
                    response_awaited = True
    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