- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 358 for cookie2 (0.06 seconds)
-
docs/tr/docs/advanced/response-cookies.md
`Response` parametresini dependency'lerde de tanımlayıp, onların içinde cookie (ve header) set edebilirsiniz. ## Doğrudan bir `Response` döndürün { #return-a-response-directly } Kodunuzda doğrudan bir `Response` döndürürken de cookie oluşturabilirsiniz. Bunu yapmak için, [Doğrudan Response Döndürme](response-directly.md) bölümünde anlatıldığı gibi bir response oluşturabilirsiniz.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 2.5K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/response-cookies.md
# 回應 Cookie { #response-cookies } ## 使用 `Response` 參數 { #use-a-response-parameter } 你可以在路徑操作函式(path operation function)中宣告一個型別為 `Response` 的參數。 接著你可以在那個「暫時」的 `Response` 物件上設定 Cookie。 {* ../../docs_src/response_cookies/tutorial002_py310.py hl[1, 8:9] *} 之後如常回傳你需要的任何物件(例如 `dict`、資料庫模型等)。 如果你宣告了 `response_model`,它仍會用來過濾並轉換你回傳的物件。 FastAPI 會使用那個暫時的 `Response` 取出 Cookie(以及標頭與狀態碼),並將它們放入最終回應;最終回應包含你回傳的值,且會套用任何 `response_model` 的過濾。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 2.1K bytes - Click Count (0) -
docs/de/docs/tutorial/cookie-param-models.md
Diese gleiche Technik gilt für `Query`, `Cookie` und `Header`. 😎 /// ## Cookies mit einem Pydantic-Modell { #cookies-with-a-pydantic-model } Deklarieren Sie die **Cookie**-Parameter, die Sie benötigen, in einem **Pydantic-Modell**, und deklarieren Sie dann den Parameter als `Cookie`: {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 07:57:30 GMT 2026 - 3.8K bytes - Click Count (0) -
docs/pt/docs/tutorial/cookie-param-models.md
/// ## Cookies com Modelos Pydantic { #cookies-with-a-pydantic-model } Declare os parâmetros de **cookie** de que você precisa em um **modelo Pydantic**, e depois declare o parâmetro como `Cookie`: {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:48:53 GMT 2026 - 3.4K bytes - Click Count (0) -
docs/zh/docs/tutorial/cookie-params.md
# Cookie 参数 { #cookie-parameters } 定义 `Cookie` 参数与定义 `Query` 和 `Path` 参数一样。 ## 导入 `Cookie` { #import-cookie } 首先,导入 `Cookie`: {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[3] *} ## 声明 `Cookie` 参数 { #declare-cookie-parameters } 声明 `Cookie` 参数的方式与声明 `Query` 和 `Path` 参数相同。 第一个值是默认值,还可以传递所有验证参数或注释参数: {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[9] *} /// note | 技术细节Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:39:41 GMT 2026 - 1.4K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/cookie-param-models.md
/// ## 禁止額外的 Cookie { #forbid-extra-cookies } 在某些特殊情境(可能不太常見)下,你可能會想**限制**允許接收的 Cookie。 你的 API 現在也能掌控自己的 <dfn title="這只是個玩笑,提醒一下。這與 Cookie 同意無關,但有趣的是連 API 現在也能拒絕可憐的 Cookie。請收下這塊餅乾。🍪">Cookie 同意</dfn>。🤪🍪 你可以使用 Pydantic 的模型設定來 `forbid` 任何 `extra` 欄位: {* ../../docs_src/cookie_param_models/tutorial002_an_py310.py hl[10] *} 如果客戶端嘗試送出**額外的 Cookie**,會收到**錯誤**回應。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 2.9K bytes - Click Count (0) -
docs/ja/docs/advanced/response-cookies.md
# レスポンスの Cookie { #response-cookies } ## `Response` パラメータを使う { #use-a-response-parameter } *path operation 関数*で `Response` 型のパラメータを宣言できます。 そして、その*一時的*なレスポンスオブジェクトに Cookie を設定できます。 {* ../../docs_src/response_cookies/tutorial002_py310.py hl[1, 8:9] *} その後は通常どおり、必要な任意のオブジェクト(`dict`、データベースモデルなど)を返せます。 `response_model` を宣言している場合でも、返したオブジェクトは引き続きフィルタおよび変換されます。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 2.7K bytes - Click Count (0) -
docs/tr/docs/tutorial/cookie-param-models.md
Aynı teknik `Query`, `Cookie` ve `Header` için de geçerlidir. 😎 /// ## Pydantic Model ile Cookies { #cookies-with-a-pydantic-model } İhtiyacınız olan **cookie** parametrelerini bir **Pydantic model** içinde tanımlayın ve ardından parametreyi `Cookie` olarak bildirin: {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 12:41:38 GMT 2026 - 3.3K bytes - Click Count (0) -
docs/zh/docs/advanced/response-cookies.md
# 响应Cookies { #response-cookies } ## 使用 `Response` 参数 { #use-a-response-parameter } 你可以在 *路径操作函数* 中定义一个类型为 `Response` 的参数,这样你就可以在这个临时响应对象中设置cookie了。 {* ../../docs_src/response_cookies/tutorial002_py310.py hl[1, 8:9] *} 而且你还可以根据你的需要响应不同的对象,比如常用的 `dict`,数据库model等。 如果你定义了 `response_model`,程序会自动根据`response_model`来过滤和转换你响应的对象。 **FastAPI** 会使用这个 *临时* 响应对象去装在这些cookies信息 (同样还有headers和状态码等信息), 最终会将这些信息和通过`response_model`转化过的数据合并到最终的响应里。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 2.1K bytes - Click Count (0) -
docs/de/docs/advanced/response-cookies.md
# Response-Cookies { #response-cookies } ## Einen `Response`-Parameter verwenden { #use-a-response-parameter } Sie können einen Parameter vom Typ `Response` in Ihrer *Pfadoperation-Funktion* deklarieren. Und dann können Sie Cookies in diesem *vorübergehenden* <abbr title="Response – Antwort: Daten, die der Server zum anfragenden Client zurücksendet">Response</abbr>-Objekt setzen. {* ../../docs_src/response_cookies/tutorial002_py310.py hl[1, 8:9] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 2.6K bytes - Click Count (0)