- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for HTMLResponse (0.23 sec)
-
docs/pt/docs/advanced/templates.md
Além disso, em versões anteriores, o objeto `request` era passado como parte dos pares chave-valor no "context" dict para o Jinja2. !!! tip "Dica" Ao declarar `response_class=HTMLResponse`, a documentação entenderá que a resposta será HTML. !!! note "Detalhes Técnicos" Você também poderia usar `from starlette.templating import Jinja2Templates`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 28 04:05:17 GMT 2024 - 3.4K bytes - Viewed (0) -
docs/de/docs/advanced/custom-response.md
Die `ORJSONResponse` ist derzeit nur in FastAPI verfügbar, nicht in Starlette. ## HTML-Response Um eine Response mit HTML direkt von **FastAPI** zurückzugeben, verwenden Sie `HTMLResponse`. * Importieren Sie `HTMLResponse`. * Übergeben Sie `HTMLResponse` als den Parameter `response_class` Ihres *Pfadoperation-Dekorators*. ```Python hl_lines="2 7" {!../../../docs_src/custom_response/tutorial002.py!} ``` !!! info
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 23 13:05:12 GMT 2024 - 13.5K bytes - Viewed (0) -
docs/ja/docs/advanced/custom-response.md
そして、OpenAPIにはそのようにドキュメントされます。 !!! tip "豆知識" `ORJSONResponse` は、現在はFastAPIのみで利用可能で、Starletteでは利用できません。 ## HTMLレスポンス **FastAPI** からHTMLを直接返す場合は、`HTMLResponse` を使います。 * `HTMLResponse` をインポートする。 * *path operation* のパラメータ `content_type` に `HTMLResponse` を渡す。 ```Python hl_lines="2 7" {!../../../docs_src/custom_response/tutorial002.py!} ``` !!! info "情報"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Jul 19 19:14:58 GMT 2021 - 10.7K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
!!! tip The `ORJSONResponse` is currently only available in FastAPI, not in Starlette. ## HTML Response To return a response with HTML directly from **FastAPI**, use `HTMLResponse`. * Import `HTMLResponse`. * Pass `HTMLResponse` as the parameter `response_class` of your *path operation decorator*. ```Python hl_lines="2 7" {!../../../docs_src/custom_response/tutorial002.py!} ``` !!! info
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.7K bytes - Viewed (0) -
docs/em/docs/tutorial/request-files.md
{!> ../../../docs_src/request_files/tutorial002_py39.py!} ``` 👆 🔜 📨, 📣, `list` `bytes` ⚖️ `UploadFile`Ⓜ. !!! note "📡 ℹ" 👆 💪 ⚙️ `from starlette.responses import HTMLResponse`. **FastAPI** 🚚 🎏 `starlette.responses` `fastapi.responses` 🏪 👆, 👩💻. ✋️ 🌅 💪 📨 👟 🔗 ⚪️➡️ 💃. ### 💗 📁 📂 ⏮️ 🌖 🗃 & 🎏 🌌 ⏭, 👆 💪 ⚙️ `File()` ⚒ 🌖 🔢, `UploadFile`:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 6.6K bytes - Viewed (0) -
docs/ko/docs/tutorial/request-files.md
그럼에도, **FastAPI**는 표준 Open API를 사용해 이미 호환이 가능합니다. 따라서 Swagger UI 또는 기타 그 외의 OpenAPI를 지원하는 툴이 다중 파일 업로드를 지원하는 경우, 이들은 **FastAPI**와 호환됩니다. !!! note "기술적 세부사항" `from starlette.responses import HTMLResponse` 역시 사용할 수 있습니다. **FastAPI**는 개발자의 편의를 위해 `fastapi.responses` 와 동일한 `starlette.responses` 도 제공합니다. 하지만 대부분의 응답들은 Starlette로부터 직접 제공됩니다. ## 요약
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 8.1K bytes - Viewed (0) -
docs/em/docs/advanced/custom-response.md
& ⚫️ 🔜 📄 ✅ 🗄. !!! tip `ORJSONResponse` ⏳ 🕴 💪 FastAPI, 🚫 💃. ## 🕸 📨 📨 📨 ⏮️ 🕸 🔗 ⚪️➡️ **FastAPI**, ⚙️ `HTMLResponse`. * 🗄 `HTMLResponse`. * 🚶♀️ `HTMLResponse` 🔢 `response_class` 👆 *➡ 🛠️ 👨🎨*. ```Python hl_lines="2 7" {!../../../docs_src/custom_response/tutorial002.py!} ``` !!! info 🔢 `response_class` 🔜 ⚙️ 🔬 "📻 🆎" 📨.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 9.8K bytes - Viewed (0) -
docs/en/docs/reference/responses.md
You can import them directly from `fastapi.responses`: ```python from fastapi.responses import ( FileResponse, HTMLResponse, JSONResponse, ORJSONResponse, PlainTextResponse, RedirectResponse, Response, StreamingResponse, UJSONResponse, ) ``` ## FastAPI Responses
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 3.7K bytes - Viewed (0) -
docs/zh/docs/advanced/custom-response.md
并且在 OpenAPI 文档中也会这样记录。 !!! tip "小贴士" `ORJSONResponse` 目前只在 FastAPI 中可用,而在 Starlette 中不可用。 ## HTML 响应 使用 `HTMLResponse` 来从 **FastAPI** 中直接返回一个 HTML 响应。 * 导入 `HTMLResponse`。 * 将 `HTMLResponse` 作为你的 *路径操作* 的 `response_class` 参数传入。 ```Python hl_lines="2 7" {!../../../docs_src/custom_response/tutorial002.py!} ``` !!! info "提示"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 12 00:06:16 GMT 2022 - 7.8K bytes - Viewed (1) -
docs/de/docs/reference/responses.md
Sie können diese direkt von `fastapi.responses` importieren: ```python from fastapi.responses import ( FileResponse, HTMLResponse, JSONResponse, ORJSONResponse, PlainTextResponse, RedirectResponse, Response, StreamingResponse, UJSONResponse, ) ``` ## FastAPI-Responses
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Feb 19 15:53:39 GMT 2024 - 3.8K bytes - Viewed (0)