Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for headers (0.15 sec)

  1. docs/en/docs/advanced/websockets.md

    And all of them will use the same WebSocket connection.
    
    ## Using `Depends` and others
    
    In WebSocket endpoints you can import from `fastapi` and use:
    
    * `Depends`
    * `Security`
    * `Cookie`
    * `Header`
    * `Path`
    * `Query`
    
    They work the same way as for other FastAPI endpoints/*path operations*:
    
    === "Python 3.10+"
    
        ```Python hl_lines="68-69  82"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 6.2K bytes
    - Viewed (0)
Back to top