Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 353 for request (0.17 sec)

  1. docs/en/docs/reference/request.md

    # `Request` class
    
    You can declare a parameter in a *path operation function* or dependency to be of type `Request` and then you can access the raw request object directly, without any validation, etc.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import Request
    ```
    
    !!! tip
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 516 bytes
    - Viewed (0)
  2. docs/de/docs/reference/request.md

    # `Request`-Klasse
    
    Sie können einen Parameter in einer *Pfadoperation-Funktion* oder einer Abhängigkeit als vom Typ `Request` deklarieren und dann direkt auf das Requestobjekt zugreifen, ohne jegliche Validierung, usw.
    
    Sie können es direkt von `fastapi` importieren:
    
    ```python
    from fastapi import Request
    ```
    
    !!! tip "Tipp"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Feb 19 15:53:18 GMT 2024
    - 596 bytes
    - Viewed (0)
  3. docs/ru/docs/tutorial/request-files.md

        {!> ../../../docs_src/request_files/tutorial001.py!}
        ```
    
    ## Определите параметры `File`
    
    Создайте параметры `File` так же, как вы это делаете для `Body` или `Form`:
    
    === "Python 3.9+"
    
        ```Python hl_lines="9"
        {!> ../../../docs_src/request_files/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.6+"
    
        ```Python hl_lines="8"
        {!> ../../../docs_src/request_files/tutorial001_an.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/request-files.md

        ```Python hl_lines="7  14"
        {!> ../../../docs_src/request_files/tutorial001_02_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9  17"
        {!> ../../../docs_src/request_files/tutorial001_02.py!}
        ```
    
    ## 带有额外元数据的 `UploadFile`
    
    您也可以将 `File()` 与 `UploadFile` 一起使用,例如,设置额外的元数据:
    
    ```Python hl_lines="13"
    {!../../../docs_src/request_files/tutorial001_03.py!}
    ```
    
    ## 多文件上传
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/request-forms.md

        例如,`pip install python-multipart`。
    
    ## 导入 `Form`
    
    从 `fastapi` 导入 `Form`:
    
    ```Python hl_lines="1"
    {!../../../docs_src/request_forms/tutorial001.py!}
    ```
    
    ## 定义 `Form` 参数
    
    创建表单(`Form`)参数的方式与 `Body` 和 `Query` 一样:
    
    ```Python hl_lines="7"
    {!../../../docs_src/request_forms/tutorial001.py!}
    ```
    
    例如,OAuth2 规范的 "密码流" 模式规定要通过表单字段发送 `username` 和 `password`。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/request-forms.md

        {!> ../../../docs_src/request_forms/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/request_forms/tutorial001_an.py!}
        ```
    
    === "Python 3.8+ non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/request_forms/tutorial001.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/request-forms.md

        {!> ../../../docs_src/request_forms/tutorial001.py!}
        ```
    
    ## `Form`-Parameter definieren
    
    Erstellen Sie Formular-Parameter, so wie Sie es auch mit `Body` und `Query` machen würden:
    
    === "Python 3.9+"
    
        ```Python hl_lines="9"
        {!> ../../../docs_src/request_forms/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="8"
        {!> ../../../docs_src/request_forms/tutorial001_an.py!}
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:06:54 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/request-files.md

        {!> ../../../docs_src/request_files/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/request_files/tutorial001_an.py!}
        ```
    
    === "Python 3.8+ non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/request_files/tutorial001.py!}
        ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/request-files.md

        ```Python hl_lines="9  17"
        {!> ../../../docs_src/request_files/tutorial001_02.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="7  14"
        {!> ../../../docs_src/request_files/tutorial001_02_py310.py!}
        ```
    
    ## `UploadFile` ⏮️ 🌖 🗃
    
    👆 💪 ⚙️ `File()` ⏮️ `UploadFile`, 🖼, ⚒ 🌖 🗃:
    
    ```Python hl_lines="13"
    {!../../../docs_src/request_files/tutorial001_03.py!}
    ```
    
    ## 💗 📁 📂
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/request-forms.md

        🤶 Ⓜ. `pip install python-multipart`.
    
    ## 🗄 `Form`
    
    🗄 `Form` ⚪️➡️ `fastapi`:
    
    ```Python hl_lines="1"
    {!../../../docs_src/request_forms/tutorial001.py!}
    ```
    
    ## 🔬 `Form` 🔢
    
    ✍ 📨 🔢 🎏 🌌 👆 🔜 `Body` ⚖️ `Query`:
    
    ```Python hl_lines="7"
    {!../../../docs_src/request_forms/tutorial001.py!}
    ```
    
    🖼, 1️⃣ 🌌 Oauth2️⃣ 🔧 💪 ⚙️ (🤙 "🔐 💧") ⚫️ ✔ 📨 `username` & `password` 📨 🏑.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top