1211 def get_route_handler(self) -> Callable[[Request], Coroutine[Any, Any, Response]]:
1212 route = cast(_APIRouteLike, self)
1213▶ # TODO: Replace or deprecate this no-scope hook so included-route
1214 # effective context can be passed explicitly instead of via ContextVar.
1215 effective_context = _effective_route_context_var.get()
· · ·
2167 raise NoMatchFound(name, path_params)
2168
2169▶ # TODO: probably move this out of the Route / Route Group, same in APIRoute
2170 # this should probably be top level FastAPI logic, not part of APIRoute and
2171 # duplicated here
· · ·
2501 # Handle on_startup/on_shutdown locally since Starlette removed support
2502 # Ref: https://github.com/Kludex/starlette/pull/3117
2503▶ # TODO: deprecate this once the lifespan (or alternative) interface is improved
2504 self.on_startup: list[Callable[[], Any]] = (
2505 [] if on_startup is None else list(on_startup)
· · ·
6312 )
6313
6314▶ # TODO: remove this once the lifespan (or alternative) interface is improved
6315 async def _startup(self) -> None:
6316 """
· · ·
6328 handler()
6329
6330▶ # TODO: remove this once the lifespan (or alternative) interface is improved
6331 async def _shutdown(self) -> None:
6332 """
+ 1 more matches in this file