Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 68 for Cookie2 (0.14 sec)

  1. docs/zh/docs/advanced/using-request-directly.md

    # 直接使用请求
    
    至此,我们已经使用多种类型声明了请求的各种组件。
    
    并从以下对象中提取数据:
    
    * 路径参数
    * 请求头
    * Cookies
    * 等
    
    **FastAPI** 使用这种方式验证数据、转换数据,并自动生成 API 文档。
    
    但有时,我们也需要直接访问 `Request` 对象。
    
    ## `Request` 对象的细节
    
    实际上,**FastAPI** 的底层是 **Starlette**,**FastAPI** 只不过是在  **Starlette** 顶层提供了一些工具,所以能直接使用 Starlette 的  <a href="https://www.starlette.io/requests/" class="external-link" target="_blank">`Request`</a> 对象。
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 22:44:02 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/request-forms.md

    <abbr title="specification">🔌</abbr> 🚚 🏑 ⚫️❔ 📛 `username` &amp; `password`, &amp; 📨 📨 🏑, 🚫 🎻.
    
    ⏮️ `Form` 👆 💪 📣 🎏 📳 ⏮️ `Body` (&amp; `Query`, `Path`, `Cookie`), 🔌 🔬, 🖼, 📛 (✅ `user-name` ↩️ `username`), ♒️.
    
    !!! info
        `Form` 🎓 👈 😖 🔗 ⚪️➡️ `Body`.
    
    !!! tip
        📣 📨 💪, 👆 💪 ⚙️ `Form` 🎯, ↩️ 🍵 ⚫️ 🔢 🔜 🔬 🔢 🔢 ⚖️ 💪 (🎻) 🔢.
    
    ## 🔃 "📨 🏑"
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. docs/fr/docs/advanced/response-directly.md

    Mais vous pouvez retourner une `JSONResponse` directement à partir de vos *opérations de chemin*.
    
    Cela peut être utile, par exemple, pour retourner des en-têtes personnalisés ou des cookies.
    
    ## Renvoyer une `Response`
    
    En fait, vous pouvez retourner n'importe quelle `Response` ou n'importe quelle sous-classe de celle-ci.
    
    !!! note "Remarque"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/request-forms.md

    ```
    
    例如,OAuth2 规范的 "密码流" 模式规定要通过表单字段发送 `username` 和 `password`。
    
    <abbr title="specification">该规范</abbr>要求字段必须命名为 `username` 和 `password`,并通过表单字段发送,不能用 JSON。
    
    使用 `Form` 可以声明与 `Body` (及 `Query`、`Path`、`Cookie`)相同的元数据和验证。
    
    !!! info "说明"
    
        `Form` 是直接继承自 `Body` 的类。
    
    !!! tip "提示"
    
        声明表单体要显式使用 `Form` ,否则,FastAPI 会把该参数当作查询参数或请求体(JSON)参数。
    
    ## 关于 "表单字段"
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/request-forms.md

    With `Form` you can declare the same configurations as with `Body` (and `Query`, `Path`, `Cookie`), including validation, examples, an alias (e.g. `user-name` instead of `username`), etc.
    
    !!! info
        `Form` is a class that inherits directly from `Body`.
    
    !!! tip
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/request-forms.md

    Com `Form` você pode declarar os mesmos metadados e validação que com `Body` (e `Query`, `Path`, `Cookie`).
    
    !!! info "Informação"
        `Form` é uma classe que herda diretamente de `Body`.
    
    !!! tip "Dica"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/request-forms.md

    Вы можете настроить `Form` точно так же, как настраиваете и  `Body` ( `Query`, `Path`, `Cookie`), включая валидации, примеры, псевдонимы (например, `user-name` вместо `username`) и т.д.
    
    !!! info "Дополнительная информация"
        `Form` - это класс, который наследуется непосредственно от `Body`.
    
    !!! tip "Подсказка"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. docs/tr/docs/tutorial/request-forms.md

    `Form` sınıfıyla tanımlama yaparken `Body`, `Query`, `Path` ve `Cookie` sınıflarında kullandığınız aynı validasyon, örnekler, isimlendirme (örneğin `username` yerine `user-name` kullanımı) ve daha fazla konfigurasyonu kullanabilirsiniz.
    
    !!! info "Bilgi"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed May 08 19:10:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/request-forms.md

    Mit `Form` haben Sie die gleichen Konfigurationsmöglichkeiten wie mit `Body` (und `Query`, `Path`, `Cookie`), inklusive Validierung, Beispielen, einem Alias (z. B. `user-name` statt `username`), usw.
    
    !!! info
        `Form` ist eine Klasse, die direkt von `Body` erbt.
    
    !!! tip "Tipp"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:06:54 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/testing.md

    🤶 Ⓜ.:
    
    * 🚶‍♀️ *➡* ⚖️ *🔢* 🔢, 🚮 ⚫️ 📛 ⚫️.
    * 🚶‍♀️ 🎻 💪, 🚶‍♀️ 🐍 🎚 (✅ `dict`) 🔢 `json`.
    * 🚥 👆 💪 📨 *📨 💽* ↩️ 🎻, ⚙️ `data` 🔢 ↩️.
    * 🚶‍♀️ *🎚*, ⚙️ `dict` `headers` 🔢.
    *  *🍪*, `dict` `cookies` 🔢.
    
    🌖 ℹ 🔃 ❔ 🚶‍♀️ 💽 👩‍💻 (⚙️ `httpx` ⚖️ `TestClient`) ✅ <a href="https://www.python-httpx.org" class="external-link" target="_blank">🇸🇲 🧾</a>.
    
    !!! info
        🗒 👈 `TestClient` 📨 💽 👈 💪 🗜 🎻, 🚫 Pydantic 🏷.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top