Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Stack (0.14 sec)

  1. fastapi/routing.py

                async with AsyncExitStack() as async_exit_stack:
                    solved_result = await solve_dependencies(
                        request=request,
                        dependant=dependant,
                        body=body,
                        dependency_overrides_provider=dependency_overrides_provider,
                        async_exit_stack=async_exit_stack,
                    )
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  2. fastapi/dependencies/utils.py

    
    async def solve_generator(
        *, call: Callable[..., Any], stack: AsyncExitStack, sub_values: Dict[str, Any]
    ) -> Any:
        if is_gen_callable(call):
            cm = contextmanager_in_threadpool(contextmanager(call)(**sub_values))
        elif is_async_gen_callable(call):
            cm = asynccontextmanager(call)(**sub_values)
        return await stack.enter_async_context(cm)
    
    
    async def solve_dependencies(
        *,
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  3. fastapi/applications.py

            )
    
            self.user_middleware: List[Middleware] = (
                [] if middleware is None else list(middleware)
            )
            self.middleware_stack: Union[ASGIApp, None] = None
            self.setup()
    
        def openapi(self) -> Dict[str, Any]:
            """
            Generate the OpenAPI schema of the application. This is called by FastAPI
            internally.
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
Back to top