Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for add_websocket_route (0.1 sec)

  1. fastapi/routing.py

            self, path: str, name: Union[str, None] = None
        ) -> Callable[[DecoratedCallable], DecoratedCallable]:
            def decorator(func: DecoratedCallable) -> DecoratedCallable:
                self.add_websocket_route(path, func, name=name)
                return func
    
            return decorator
    
        def include_router(
            self,
            router: Annotated["APIRouter", Doc("The `APIRouter` to include.")],
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 172.1K bytes
    - Viewed (0)
  2. fastapi/applications.py

            self, path: str, name: Union[str, None] = None
        ) -> Callable[[DecoratedCallable], DecoratedCallable]:
            def decorator(func: DecoratedCallable) -> DecoratedCallable:
                self.router.add_websocket_route(path, func, name=name)
                return func
    
            return decorator
    
        @deprecated(
            """
            on_event is deprecated, use lifespan event handlers instead.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
Back to top