Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for apps (0.17 sec)

  1. fastapi/applications.py

                    ```python
                    from fastapi import FastAPI
    
                    app = FastAPI(redirect_slashes=True)  # the default
    
                    @app.get("/items/")
                    async def read_items():
                        return [{"item_id": "Foo"}]
                    ```
    
                    With this app, if a client goes to `/items` (without a trailing slash),
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  2. fastapi/routing.py

                )
            return response
    
        return app
    
    
    def get_websocket_app(
        dependant: Dependant, dependency_overrides_provider: Optional[Any] = None
    ) -> Callable[[WebSocket], Coroutine[Any, Any, Any]]:
        async def app(websocket: WebSocket) -> None:
            async with AsyncExitStack() as async_exit_stack:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
Back to top