- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 179 for Borg (0.12 sec)
-
docs/zh/docs/tutorial/middleware.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 27 17:25:21 GMT 2021 - 2.7K bytes - Viewed (0) -
docs/zh/docs/advanced/response-directly.md
## 返回自定义 `Response` 上面的例子展示了需要的所有部分,但还不够实用,因为你本可以只是直接返回 `item`,而**FastAPI** 默认帮你把这个 `item` 放到 `JSONResponse` 中,又默认将其转换成了 `dict`等等。 现在,让我们看看你如何才能返回一个自定义的响应。 假设你想要返回一个 <a href="https://en.wikipedia.org/wiki/XML" class="external-link" target="_blank">XML</a> 响应。 你可以把你的 XML 内容放到一个字符串中,放到一个 `Response` 中,然后返回。 ```Python hl_lines="1 18" {!../../../docs_src/response_directly/tutorial002.py!} ``` ## 说明
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 12 00:06:16 GMT 2022 - 3.1K bytes - Viewed (0) -
docs/em/docs/deployment/versions.md
# 🔃 FastAPI ⏬ **FastAPI** ⏪ ➖ ⚙️ 🏭 📚 🈸 & ⚙️. & 💯 💰 🚧 1️⃣0️⃣0️⃣ 💯. ✋️ 🚮 🛠️ 🚚 🔜. 🆕 ⚒ 🚮 🛎, 🐛 🔧 🛎, & 📟 🔁 📉. 👈 ⚫️❔ ⏮️ ⏬ `0.x.x`, 👉 🎨 👈 🔠 ⏬ 💪 ⚠ ✔️ 💔 🔀. 👉 ⏩ <a href="https://semver.org/" class="external-link" target="_blank">⚛ 🛠️</a> 🏛. 👆 💪 ✍ 🏭 🈸 ⏮️ **FastAPI** ▶️️ 🔜 (& 👆 ✔️ 🎲 🔨 ⚫️ 🕰), 👆 ✔️ ⚒ 💭 👈 👆 ⚙️ ⏬ 👈 👷 ☑ ⏮️ 🎂 👆 📟. ## 📌 👆 `fastapi` ⏬
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 2.6K bytes - Viewed (0) -
docs/en/docs/advanced/dataclasses.md
# Using Dataclasses FastAPI is built on top of **Pydantic**, and I have been showing you how to use Pydantic models to declare requests and responses. But FastAPI also supports using <a href="https://docs.python.org/3/library/dataclasses.html" class="external-link" target="_blank">`dataclasses`</a> the same way: ```Python hl_lines="1 7-12 19-20" {!../../../docs_src/dataclasses/tutorial001.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 4.1K bytes - Viewed (0) -
docs/zh/docs/advanced/custom-request-and-route.md
有时,我们要覆盖 `Request` 与 `APIRoute` 类使用的逻辑。 尤其是中间件里的逻辑。 例如,在应用处理请求体前,预先读取或操控请求体。 !!! danger "危险" 本章内容**较难**。 **FastAPI** 新手可跳过本章。 ## 用例 常见用例如下: * 把 <a href="https://msgpack.org/index.html" class="external-link" target="_blank">`msgpack`</a> 等非 JSON 请求体转换为 JSON * 解压 gzip 压缩的请求体 * 自动记录所有请求体的日志 ## 处理自定义请求体编码 下面学习如何使用自定义 `Request` 子类压缩 gizp 请求。 并在自定义请求的类中使用 `APIRoute` 子类。
Plain Text - Registered: Sun Mar 31 07:19:09 GMT 2024 - Last Modified: Sat Mar 30 22:45:40 GMT 2024 - 3.8K bytes - Viewed (0) -
docs/ja/docs/advanced/response-directly.md
## カスタム `Response` を返す 上記の例では必要な部分を全て示していますが、あまり便利ではありません。`item` を直接返すことができるし、**FastAPI** はそれを `dict` に変換して `JSONResponse` に含めてくれるなど。すべて、デフォルトの動作です。 では、これを使ってカスタムレスポンスをどう返すか見てみましょう。 <a href="https://en.wikipedia.org/wiki/XML" class="external-link" target="_blank">XML</a>レスポンスを返したいとしましょう。 XMLを文字列にし、`Response` に含め、それを返します。 ```Python hl_lines="1 18" {!../../../docs_src/response_directly/tutorial002.py!} ``` ## 備考
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Nov 05 22:50:38 GMT 2020 - 3.6K bytes - Viewed (0) -
docs/ja/docs/tutorial/request-forms.md
しかし、フォームがファイルを含む場合は、`multipart/form-data`としてエンコードされます。ファイルの扱いについては次の章で説明します。 これらのエンコーディングやフォームフィールドの詳細については、<a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST" class="external-link" target="_blank"><abbr title="Mozilla Developer Network">MDN</abbr>の<code>POST</code></a>のウェブドキュメントを参照してください。 !!! warning "注意"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 3.3K bytes - Viewed (0) -
docs/de/docs/project-generation.md
* **Standards-basiert**: Basierend auf (und vollständig kompatibel mit) den offenen Standards für APIs: <a href="https://github.com/OAI/OpenAPI-Specification" class="external-link" target="_blank">OpenAPI</a> und <a href="https://json-schema.org/" class="external-link" target="_blank">JSON Schema</a>.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:14:36 GMT 2024 - 6.5K bytes - Viewed (0) -
docs/pt/docs/project-generation.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Oct 17 05:50:32 GMT 2020 - 6.3K bytes - Viewed (0) -
docs/ja/docs/tutorial/middleware.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 12 00:06:16 GMT 2022 - 3.8K bytes - Viewed (0)