Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 332 for Cookie1 (0.16 sec)

  1. docs/zh/docs/advanced/response-cookies.md

    # 响应Cookies
    
    ## 使用 `Response` 参数
    
    你可以在 *路径函数* 中定义一个类型为 `Response`的参数,这样你就可以在这个临时响应对象中设置cookie了。
    
    ```Python hl_lines="1  8-9"
    {!../../../docs_src/response_cookies/tutorial002.py!}
    ```
    
    而且你还可以根据你的需要响应不同的对象,比如常用的 `dict`,数据库model等。
    
    如果你定义了 `response_model`,程序会自动根据`response_model`来过滤和转换你响应的对象。
    
    **FastAPI** 会使用这个 *临时* 响应对象去装在这些cookies信息 (同样还有headers和状态码等信息), 最终会将这些信息和通过`response_model`转化过的数据合并到最终的响应里。
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Aug 18 16:09:38 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  2. docs/uk/docs/tutorial/cookie-params.md

        ```
    
    !!! note "Технічні Деталі"
        `Cookie` це "сестра" класів `Path` і `Query`. Вони наслідуються від одного батьківського класу `Param`.
        Але пам'ятайте, що коли ви імпортуєте `Query`, `Path`, `Cookie` та інше з `fastapi`, це фактично функції, що повертають спеціальні класи.
    
    !!! info
        Для визначення cookies ви маєте використовувати `Cookie`, тому що в іншому випадку параметри будуть інтерпритовані, як параметри запиту.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/cookie-params.md

    # Cookie-Parameter
    
    So wie `Query`- und `Path`-Parameter können Sie auch <abbr title='Cookie – „Keks“: Mechanismus, der kurze Daten in Textform im Browser des Benutzers speichert und abfragt'>Cookie</abbr>-Parameter definieren.
    
    ## `Cookie` importieren
    
    Importieren Sie zuerst `Cookie`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="3"
        {!> ../../../docs_src/cookie_params/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:02:19 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/cookie-params.md

        ```
    
    !!! note "Technical Details"
        `Cookie` is a "sister" class of `Path` and `Query`. It also inherits from the same common `Param` class.
    
        But remember that when you import `Query`, `Path`, `Cookie` and others from `fastapi`, those are actually functions that return special classes.
    
    !!! info
        To declare cookies, you need to use `Cookie`, because otherwise the parameters would be interpreted as query parameters.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. docs/es/docs/tutorial/cookie-params.md

        ```
    
    !!! note "Detalles Técnicos"
        `Cookie` es una clase "hermana" de `Path` y `Query`. También hereda de la misma clase común `Param`.
    
        Pero recuerda que cuando importas `Query`, `Path`, `Cookie`  y otros de `fastapi`, en realidad son funciones que devuelven clases especiales.
    
    !!! info
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Apr 19 19:30:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CookieTest.kt

            .build()
        assertThat(cookie.name).isEqualTo("a")
        assertThat(cookie.value).isEqualTo("b")
        assertThat(cookie.expiresAt).isEqualTo(MAX_DATE)
        assertThat(cookie.domain).isEqualTo("example.com")
        assertThat(cookie.path).isEqualTo("/")
        assertThat(cookie.secure).isFalse()
        assertThat(cookie.httpOnly).isFalse()
        assertThat(cookie.persistent).isFalse()
        assertThat(cookie.hostOnly).isFalse()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  7. okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt

          if (("Cookie".equals(key, ignoreCase = true) || "Cookie2".equals(key, ignoreCase = true)) &&
            value.isNotEmpty()
          ) {
            for (header in value) {
              if (cookies == null) cookies = mutableListOf()
              cookies.addAll(decodeHeaderAsJavaNetCookies(url, header))
            }
          }
        }
    
        return if (cookies != null) {
          Collections.unmodifiableList(cookies)
        } else {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 04:10:43 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/cookie-params.md

    ## `Cookie`をインポート
    
    まず、`Cookie`をインポートします:
    
    ```Python hl_lines="3"
    {!../../../docs_src/cookie_params/tutorial001.py!}
    ```
    
    ## `Cookie`のパラメータを宣言
    
    次に、`Path`や`Query`と同じ構造を使ってクッキーのパラメータを宣言します。
    
    最初の値がデフォルト値で、追加の検証パラメータや注釈パラメータをすべて渡すことができます:
    
    ```Python hl_lines="9"
    {!../../../docs_src/cookie_params/tutorial001.py!}
    ```
    
    !!! note "技術詳細"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Jan 09 18:19:26 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/cookie-params.md

        ```
    
    !!! note "📡 ℹ"
        `Cookie` "👭" 🎓 `Path` &amp; `Query`. ⚫️ 😖 ⚪️➡️ 🎏 ⚠ `Param` 🎓.
    
        ✋️ 💭 👈 🕐❔ 👆 🗄 `Query`, `Path`, `Cookie` &amp; 🎏 ⚪️➡️ `fastapi`, 👈 🤙 🔢 👈 📨 🎁 🎓.
    
    !!! info
        📣 🍪, 👆 💪 ⚙️ `Cookie`, ↩️ ⏪ 🔢 🔜 🔬 🔢 🔢.
    
    ## 🌃
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 01 09:26:04 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. docs/tr/docs/tutorial/cookie-params.md

    # Çerez (Cookie) Parametreleri
    
    `Query` (Sorgu) ve `Path` (Yol) parametrelerini tanımladığınız şekilde çerez parametreleri tanımlayabilirsiniz.
    
    ## Import `Cookie`
    
    Öncelikle, `Cookie`'yi projenize dahil edin:
    
    === "Python 3.10+"
    
        ```Python hl_lines="3"
        {!> ../../../docs_src/cookie_params/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="3"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue May 14 19:35:04 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top