Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WebSocket (0.28 sec)

  1. docs/de/docs/reference/httpconnection.md

    Wenn Sie Abhängigkeiten definieren möchten, die sowohl mit HTTP als auch mit WebSockets kompatibel sein sollen, können Sie einen Parameter definieren, der eine `HTTPConnection` anstelle eines `Request` oder eines `WebSocket` akzeptiert.
    
    Sie können diese von `fastapi.requests` importieren:
    
    ```python
    from fastapi.requests import HTTPConnection
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:16:16 GMT 2024
    - 418 bytes
    - Viewed (0)
  2. docs/en/docs/reference/httpconnection.md

    # `HTTPConnection` class
    
    When you want to define dependencies that should be compatible with both HTTP and WebSockets, you can define a parameter that takes an `HTTPConnection` instead of a `Request` or a `WebSocket`.
    
    You can import it from `fastapi.requests`:
    
    ```python
    from fastapi.requests import HTTPConnection
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 359 bytes
    - Viewed (0)
Back to top