Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for add_websocket_route (0.18 sec)

  1. docs_src/graphql/tutorial001.py

            return User(name="Patrick", age=100)
    
    
    schema = strawberry.Schema(query=Query)
    
    
    graphql_app = GraphQL(schema)
    
    app = FastAPI()
    app.add_route("/graphql", graphql_app)
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Oct 03 18:00:28 UTC 2021
    - 446 bytes
    - Viewed (0)
  2. 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: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 170.1K bytes
    - Viewed (0)
  3. 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: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 00:48:03 UTC 2024
    - 172.2K bytes
    - Viewed (0)
Back to top