Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 153 for websockets (0.05 seconds)

  1. docs/pt/docs/index.md

    * Integrações **GraphQL** com o [Strawberry](https://strawberry.rocks) e outras bibliotecas.
    * Muitos recursos extras (graças ao Starlette) como:
        * **WebSockets**
        * testes extremamente fáceis baseados em HTTPX e `pytest`
        * **CORS**
        * **Cookie Sessions**
        * ...e mais.
    
    ### Implemente sua aplicação (opcional) { #deploy-your-app-optional }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 22.7K bytes
    - Click Count (0)
  2. docs/zh/docs/index.md

    * 安全与认证,包括对 **OAuth2**、**JWT tokens** 和 **HTTP Basic** 认证的支持。
    * 更高级(但同样简单)的 **多层嵌套 JSON 模型** 声明技巧(得益于 Pydantic)。
    * 通过 [Strawberry](https://strawberry.rocks) 等库进行 **GraphQL** 集成。
    * 许多额外特性(归功于 Starlette),例如:
        * **WebSockets**
        * 基于 HTTPX 和 `pytest` 的极其简单的测试
        * **CORS**
        * **Cookie Sessions**
        * ……以及更多。
    
    ### 部署你的应用(可选) { #deploy-your-app-optional }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 20.7K bytes
    - Click Count (0)
  3. docs/en/docs/index.md

    * **GraphQL** integration with [Strawberry](https://strawberry.rocks) and other libraries.
    * Many extra features (thanks to Starlette) as:
        * **WebSockets**
        * extremely easy tests based on HTTPX and `pytest`
        * **CORS**
        * **Cookie Sessions**
        * ...and more.
    
    ### Deploy your app (optional) { #deploy-your-app-optional }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 21.4K bytes
    - Click Count (0)
  4. docs/fr/docs/index.md

    * Intégration **GraphQL** avec [Strawberry](https://strawberry.rocks) et d'autres bibliothèques.
    * De nombreuses fonctionnalités supplémentaires (grâce à Starlette) comme :
        * **WebSockets**
        * des tests extrêmement faciles basés sur HTTPX et `pytest`
        * **CORS**
        * **Cookie Sessions**
        * ... et plus encore.
    
    ### Déployer votre application (optionnel) { #deploy-your-app-optional }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 23.8K bytes
    - Click Count (0)
  5. tests/test_http_connection_injection.py

    ):
        await websocket.accept()
        await websocket.send_json(value)
        await websocket.close()
    
    
    client = TestClient(app)
    
    
    def test_value_extracting_by_http():
        response = client.get("/http")
        assert response.status_code == 200
        assert response.json() == 42
    
    
    def test_value_extracting_by_ws():
        with client.websocket_connect("/ws") as websocket:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Aug 09 13:56:41 GMT 2020
    - 972 bytes
    - Click Count (0)
  6. docs_src/app_testing/tutorial002_py310.py

    from fastapi.testclient import TestClient
    from fastapi.websockets import WebSocket
    
    app = FastAPI()
    
    
    @app.get("/")
    async def read_main():
        return {"msg": "Hello World"}
    
    
    @app.websocket("/ws")
    async def websocket(websocket: WebSocket):
        await websocket.accept()
        await websocket.send_json({"msg": "Hello WebSocket"})
        await websocket.close()
    
    
    def test_read_main():
        client = TestClient(app)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 757 bytes
    - Click Count (0)
  7. fastapi/exception_handlers.py

            status_code=422,
            content={"detail": jsonable_encoder(exc.errors())},
        )
    
    
    async def websocket_request_validation_exception_handler(
        websocket: WebSocket, exc: WebSocketRequestValidationError
    ) -> None:
        await websocket.close(
            code=WS_1008_POLICY_VIOLATION, reason=jsonable_encoder(exc.errors())
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Sep 16 17:21:48 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  8. README.md

    * **GraphQL** integration with [Strawberry](https://strawberry.rocks) and other libraries.
    * Many extra features (thanks to Starlette) as:
        * **WebSockets**
        * extremely easy tests based on HTTPX and `pytest`
        * **CORS**
        * **Cookie Sessions**
        * ...and more.
    
    ### Deploy your app (optional)
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 24.3K bytes
    - Click Count (0)
  9. docs/en/docs/alternatives.md

    It has an interesting, uncommon feature: using the same framework, it's possible to create APIs and also CLIs.
    
    As it is based on the previous standard for synchronous Python web frameworks (WSGI), it can't handle Websockets and other things, although it still has high performance too.
    
    /// info
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  10. docs/en/mkdocs.yml

        - advanced/dataclasses.md
        - advanced/middleware.md
        - advanced/sub-applications.md
        - advanced/behind-a-proxy.md
        - advanced/templates.md
        - advanced/websockets.md
        - advanced/events.md
        - advanced/testing-websockets.md
        - advanced/testing-events.md
        - advanced/testing-dependencies.md
        - advanced/async-tests.md
        - advanced/settings.md
        - advanced/openapi-callbacks.md
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:16:24 GMT 2026
    - 9.9K bytes
    - Click Count (0)
Back to Top