Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 282 for Cookies (0.04 seconds)

  1. fastapi/dependencies/utils.py

        elif field_info_in == params.ParamTypes.header:
            dependant.header_params.append(field)
        else:
            assert field_info_in == params.ParamTypes.cookie, (
                f"non-body parameters must be in path, query, header or cookie: {field.name}"
            )
            dependant.cookie_params.append(field)
    
    
    async def _solve_generator(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 37.6K bytes
    - Click Count (3)
  2. docs/pt/docs/index.md

    **Alerta de Spoiler**: o tutorial - guia do usuário inclui:
    
    * Declaração de **parâmetetros** de diferentes lugares como: **cabeçalhos**, **cookies**, **campos de formulários** e **arquivos**.
    * Como configurar **Limitações de Validação** como `maximum_length` ou `regex`.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 20:32:40 GMT 2025
    - 24.5K bytes
    - Click Count (0)
  3. docs/en/docs/release-notes.md

    
    @app.get("/items/")
    async def read_items(cookies: Annotated[Cookies, Cookie()]):
        return cookies
    ```
    
    Read the new docs: [Cookie Parameter Models](https://fastapi.tiangolo.com/tutorial/cookie-param-models/).
    
    #### Forbid Extra Query (Cookie, Header) Parameters
    
    Use Pydantic models to restrict extra values for `Query` parameters (also applies to `Header` and `Cookie` parameters).
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 19:06:15 GMT 2025
    - 586.7K bytes
    - Click Count (0)
  4. docs/changelogs/changelog_2x.md

        handling in WebSockets is significantly improved.
     *  Fix: Don't use SPDY/3 style header concatenation for HTTP/2 request headers.
        This could have corrupted requests where multiple headers had the same name,
        as in cookies.
     *  Fix: Reject bad characters in the URL hostname. Previously characters like
        `\0` would cause a late crash when building the request.
     *  Fix: Allow interceptors to change the request method.
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

       * cookies can be 4KiB, and should be possible to send.
       *
       *  http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-12#section-5.2
       */
      @Test
      fun largeHeaderValue() {
        val value = CharArray(4096)
        Arrays.fill(value, '!')
        val headerBlock = headerEntries("cookie", String(value))
        hpackWriter!!.writeHeaders(headerBlock)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 38.6K bytes
    - Click Count (0)
  6. CHANGELOG.md

        this new one.)
    
        ```kotlin
        implementation("com.squareup.okhttp3:okhttp-java-net-cookiehandler:5.0.0-alpha.12")
        ```
    
     *  New: `Cookie.sameSite` determines whether cookies should be sent on cross-site requests. This
        is used by servers to defend against Cross-Site Request Forgery (CSRF) attacks.
    
     *  New: Log the total time of the HTTP call in `HttpLoggingInterceptor`.
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 05 16:02:59 GMT 2025
    - 36.2K bytes
    - Click Count (2)
  7. tests/test_schema_extra_examples.py

            def cookie_example(
                data: Union[str, None] = Cookie(
                    default=None,
                    example="cookie1",
                ),
            ):
                return data
    
        @app.get("/cookie_examples/")
        def cookie_examples(
            data: Union[str, None] = Cookie(
                default=None,
                examples=["cookie1", "cookie2"],
            ),
        ):
            return data
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 32.2K bytes
    - Click Count (0)
  8. tests/test_openapi_examples.py

                                    "Cookie One": {
                                        "summary": "Cookie One Summary",
                                        "description": "Cookie One Description",
                                        "value": "cookie1",
                                    },
                                    "Cookie Two": {"value": "cookie2"},
                                },
                            }
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  9. 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:
    
    {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[3] *}
    
    ## `Cookie` Parametrelerini Tanımlayın
    
    Çerez parametrelerini `Path` veya `Query` tanımlaması yapar gibi tanımlayın.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 1.2K bytes
    - Click Count (0)
  10. docs/ja/docs/tutorial/cookie-params.md

    クッキーのパラメータは、`Query`や`Path`のパラメータを定義するのと同じ方法で定義できます。
    
    ## `Cookie`をインポート
    
    まず、`Cookie`をインポートします:
    
    {* ../../docs_src/cookie_params/tutorial001.py hl[3] *}
    
    ## `Cookie`のパラメータを宣言
    
    次に、`Path`や`Query`と同じ構造を使ってクッキーのパラメータを宣言します。
    
    最初の値がデフォルト値で、追加の検証パラメータや注釈パラメータをすべて渡すことができます:
    
    {* ../../docs_src/cookie_params/tutorial001.py hl[9] *}
    
    /// note | 技術詳細
    
    `Cookie`は`Path`と`Query`の「姉妹」クラスです。また、同じ共通の`Param`クラスを継承しています。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 1.3K bytes
    - Click Count (0)
Back to Top