- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for 178 (0.06 sec)
-
docs/pt/docs/advanced/response-headers.md
Você pode declarar um parâmetro do tipo `Response` na sua *função de operação de rota* (assim como você pode fazer para cookies). Então você pode definir os cabeçalhos nesse objeto de resposta *temporário*. ```Python hl_lines="1 7-8" {!../../docs_src/response_headers/tutorial002.py!} ``` Em seguida você pode retornar qualquer objeto que precisar, da maneira que faria normalmente (um `dict`, um modelo de banco de dados, etc.).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 16 07:44:45 UTC 2024 - 2.5K bytes - Viewed (0) -
docs/em/docs/advanced/response-headers.md
# 📨 🎚 ## ⚙️ `Response` 🔢 👆 💪 📣 🔢 🆎 `Response` 👆 *➡ 🛠️ 🔢* (👆 💪 🍪). & ⤴️ 👆 💪 ⚒ 🎚 👈 *🔀* 📨 🎚. ```Python hl_lines="1 7-8" {!../../docs_src/response_headers/tutorial002.py!} ``` & ⤴️ 👆 💪 📨 🙆 🎚 👆 💪, 👆 🛎 🔜 ( `dict`, 💽 🏷, ♒️). & 🚥 👆 📣 `response_model`, ⚫️ 🔜 ⚙️ ⛽ & 🗜 🎚 👆 📨.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.8K bytes - Viewed (0) -
build-logic-commons/build-platform/build.gradle.kts
api("org.jetbrains.dokka:dokka-core:1.9.20") api("com.fasterxml.woodstox:woodstox-core:6.4.0") { because("CVE-2022-40152 on lower versions") } api("com.beust:jcommander:1.78") api("org.codehaus.groovy:groovy:$groovyVersion") api("org.codehaus.groovy.modules.http-builder:http-builder:0.7.2") // TODO maybe change group name when upgrading to Groovy 4
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Oct 29 21:53:00 UTC 2024 - 4.8K bytes - Viewed (0) -
docs/zh/docs/advanced/response-headers.md
# 响应头 ## 使用 `Response` 参数 你可以在你的*路径操作函数*中声明一个`Response`类型的参数(就像你可以为cookies做的那样)。 然后你可以在这个*临时*响应对象中设置头部。 ```Python hl_lines="1 7-8" {!../../docs_src/response_headers/tutorial002.py!} ``` 然后你可以像平常一样返回任何你需要的对象(例如一个`dict`或者一个数据库模型)。如果你声明了一个`response_model`,它仍然会被用来过滤和转换你返回的对象。 **FastAPI**将使用这个临时响应来提取头部(也包括cookies和状态码),并将它们放入包含你返回的值的最终响应中,该响应由任何`response_model`过滤。 你也可以在依赖项中声明`Response`参数,并在其中设置头部(和cookies)。 ## 直接返回 `Response`
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2K bytes - Viewed (0) -
docs/em/docs/advanced/using-request-directly.md
✋️ 📤 🎯 💼 🌐❔ ⚫️ ⚠ 🤚 `Request` 🎚. ## ⚙️ `Request` 🎚 🔗 ➡️ 🌈 👆 💚 🤚 👩💻 📢 📢/🦠 🔘 👆 *➡ 🛠️ 🔢*. 👈 👆 💪 🔐 📨 🔗. ```Python hl_lines="1 7-8" {!../../docs_src/using_request_directly/tutorial001.py!} ``` 📣 *➡ 🛠️ 🔢* 🔢 ⏮️ 🆎 ➖ `Request` **FastAPI** 🔜 💭 🚶♀️ `Request` 👈 🔢. /// tip 🗒 👈 👉 💼, 👥 📣 ➡ 🔢 ⤴️ 📨 🔢.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.8K bytes - Viewed (0) -
docs/en/docs/advanced/using-request-directly.md
## Use the `Request` object directly Let's imagine you want to get the client's IP address/host inside of your *path operation function*. For that you need to access the request directly. ```Python hl_lines="1 7-8" {!../../docs_src/using_request_directly/tutorial001.py!} ``` By declaring a *path operation function* parameter with the type being the `Request` **FastAPI** will know to pass the `Request` in that parameter. /// tip
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.3K bytes - Viewed (0) -
docs/es/docs/advanced/response-headers.md
Puedes declarar un parámetro de tipo `Response` en tu *función de operación de path* (de manera similar como se hace con las cookies). Y entonces, podrás configurar las cookies en ese objeto de response *temporal*. ```Python hl_lines="1 7-8" {!../../docs_src/response_headers/tutorial002.py!} ``` Posteriormente, puedes devolver cualquier objeto que necesites, como normalmente harías (un `dict`, un modelo de base de datos, etc).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.5K bytes - Viewed (0) -
docs/de/docs/advanced/response-headers.md
Sie können einen Parameter vom Typ `Response` in Ihrer *Pfadoperation-Funktion* deklarieren (wie Sie es auch für Cookies tun können). Und dann können Sie Header in diesem *vorübergehenden* Response-Objekt festlegen. ```Python hl_lines="1 7-8" {!../../docs_src/response_headers/tutorial002.py!} ``` Anschließend können Sie wie gewohnt jedes gewünschte Objekt zurückgeben (ein `dict`, ein Datenbankmodell, usw.).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.6K bytes - Viewed (0) -
docs/de/docs/advanced/using-request-directly.md
## Das `Request`-Objekt direkt verwenden Angenommen, Sie möchten auf die IP-Adresse/den Host des Clients in Ihrer *Pfadoperation-Funktion* zugreifen. Dazu müssen Sie direkt auf den Request zugreifen. ```Python hl_lines="1 7-8" {!../../docs_src/using_request_directly/tutorial001.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.5K bytes - Viewed (0) -
docs/en/docs/advanced/response-headers.md
## Use a `Response` parameter You can declare a parameter of type `Response` in your *path operation function* (as you can do for cookies). And then you can set headers in that *temporal* response object. ```Python hl_lines="1 7-8" {!../../docs_src/response_headers/tutorial002.py!} ``` And then you can return any object you need, as you normally would (a `dict`, a database model, etc).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.2K bytes - Viewed (0)