- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 523 for response (0.18 sec)
-
docs/de/docs/reference/response.md
# `Response`-Klasse Sie können einen Parameter in einer *Pfadoperation-Funktion* oder einer Abhängigkeit als `Response` deklarieren und dann Daten für die Response wie Header oder Cookies festlegen. Diese können Sie auch direkt verwenden, um eine Instanz davon zu erstellen und diese von Ihren *Pfadoperationen* zurückzugeben. Sie können sie direkt von `fastapi` importieren: ```python from fastapi import Response ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:16:03 GMT 2024 - 451 bytes - Viewed (0) -
docs/en/docs/reference/response.md
# `Response` class You can declare a parameter in a *path operation function* or dependency to be of type `Response` and then you can set data for the response like headers or cookies. You can also use it directly to create an instance of it and return it from your *path operations*. You can import it directly from `fastapi`: ```python from fastapi import Response ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 397 bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Response.kt
} internal constructor(response: Response) { this.request = response.request this.protocol = response.protocol this.code = response.code this.message = response.message this.handshake = response.handshake this.headers = response.headers.newBuilder() this.body = response.body this.networkResponse = response.networkResponse
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 15.5K bytes - Viewed (0) -
docs/de/docs/tutorial/response-model.md
Diese Felder werden also in der JSON-Response enthalten sein. !!! tip "Tipp" Beachten Sie, dass Defaultwerte alles Mögliche sein können, nicht nur `None`. Sie können eine Liste (`[]`), ein `float` `10.5`, usw. sein. ### `response_model_include` und `response_model_exclude` Sie können auch die Parameter `response_model_include` und `response_model_exclude` im **Pfadoperation-Dekorator** verwenden.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:26:58 GMT 2024 - 19.9K bytes - Viewed (0) -
docs/em/docs/tutorial/response-model.md
{!> ../../../docs_src/response_model/tutorial003_02.py!} ``` 👉 🙅 💼 🍵 🔁 FastAPI ↩️ 📨 🆎 ✍ 🎓 (⚖️ 🏿) `Response`. & 🧰 🔜 😄 ↩️ 👯♂️ `RedirectResponse` & `JSONResponse` 🏿 `Response`, 🆎 ✍ ☑. ### ✍ 📨 🏿 👆 💪 ⚙️ 🏿 `Response` 🆎 ✍: ```Python hl_lines="8-9" {!> ../../../docs_src/response_model/tutorial003_03.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 16K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
Of course, the actual `Content-Type` header, status code, etc, will come from the `Response` object you returned. ### Document in OpenAPI and override `Response` If you want to override the response from inside of the function but at the same time document the "media type" in OpenAPI, you can use the `response_class` parameter AND return a `Response` object.
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/zh/docs/advanced/response-cookies.md
## 直接响应 `Response` 你还可以在直接响应`Response`时直接创建cookies。 你可以参考[Return a Response Directly](response-directly.md){.internal-link target=_blank}来创建response 然后设置Cookies,并返回: ```Python hl_lines="10-12" {!../../../docs_src/response_cookies/tutorial001.py!} ``` !!! tip 需要注意,如果你直接反馈一个response对象,而不是使用`Response`入参,FastAPI则会直接反馈你封装的response对象。 所以你需要确保你响应数据类型的正确性,如:你可以使用`JSONResponse`来兼容JSON的场景。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Aug 18 16:09:38 GMT 2022 - 2.1K bytes - Viewed (0) -
docs/en/docs/advanced/response-headers.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 2.2K bytes - Viewed (0) -
docs/en/docs/advanced/response-directly.md
```Python hl_lines="6-7 21-22" {!../../../docs_src/response_directly/tutorial001.py!} ``` !!! note "Technical Details" You could also use `from starlette.responses import JSONResponse`. **FastAPI** provides the same `starlette.responses` as `fastapi.responses` just as a convenience for you, the developer. But most of the available responses come directly from Starlette.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Aug 29 14:02:58 GMT 2020 - 3K bytes - Viewed (0) -
docs/em/docs/advanced/custom-response.md
#### 📨 `HTMLResponse` 🔗 🖼, ⚫️ 💪 🕳 💖: ```Python hl_lines="7 21 23" {!../../../docs_src/custom_response/tutorial004.py!} ``` 👉 🖼, 🔢 `generate_html_response()` ⏪ 🏗 & 📨 `Response` ↩️ 🛬 🕸 `str`. 🛬 🏁 🤙 `generate_html_response()`, 👆 ⏪ 🛬 `Response` 👈 🔜 🔐 🔢 **FastAPI** 🎭. ✋️ 👆 🚶♀️ `HTMLResponse` `response_class` 💁♂️, **FastAPI** 🔜 💭 ❔ 📄 ⚫️ 🗄 & 🎓 🩺 🕸 ⏮️ `text/html`:
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)