Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 229 for COOKIE (0.05 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/HeadersTest.kt

            .add("proxy-authorization", "chocolate")
            .add("cookie", "drink=coffee")
            .add("set-cookie", "accessory=sugar")
            .add("user-agent", "OkHttp")
            .build()
        assertThat(headers.toString()).isEqualTo(
          """
          |content-length: 99
          |authorization: ██
          |proxy-authorization: ██
          |cookie: ██
          |set-cookie: ██
          |user-agent: OkHttp
          |
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  2. tests/test_schema_extra_examples.py

            @app.get("/cookie_example/")
            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"],
            ),
        ):
    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)
  3. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

            .clearHeaders()
            .addHeader("Cookie: s=square")
            .addHeader("Cookie", "a=android")
        assertThat(headersToList(response))
          .containsExactly("Cookie: s=square", "Cookie: a=android")
      }
    
      @Test
      fun mockResponseSetHeader() {
        val response =
          MockResponse()
            .clearHeaders()
            .addHeader("Cookie: s=square")
            .addHeader("Cookie: a=android")
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Jul 03 13:16:34 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  4. tests/test_security_api_key_cookie_description.py

            "components": {
                "securitySchemes": {
                    "APIKeyCookie": {
                        "type": "apiKey",
                        "name": "key",
                        "in": "cookie",
                        "description": "An API Cookie Key",
                    }
                }
            },
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

      }
    
      @Test
      fun cookie() {
        val cookie: Cookie = Cookie.Builder().build()
        val name: String = cookie.name
        val value: String = cookie.value
        val persistent: Boolean = cookie.persistent
        val expiresAt: Long = cookie.expiresAt
        val hostOnly: Boolean = cookie.hostOnly
        val domain: String = cookie.domain
        val path: String = cookie.path
        val httpOnly: Boolean = cookie.httpOnly
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 47K bytes
    - Click Count (0)
  6. docs/ru/docs/tutorial/header-params.md

    ## Импорт `Header` { #import-header }
    
    Сперва импортируйте `Header`:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## Объявление параметров `Header` { #declare-header-parameters }
    
    Затем объявите параметры заголовка, используя ту же структуру, что и с `Path`, `Query` и `Cookie`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 11:24:39 GMT 2025
    - 5K bytes
    - Click Count (0)
  7. tests/test_query_cookie_header_model_extra_params.py

    @app.get("/cookie")
    async def cookies_model_with_extra(data: Model = Cookie()):
        return data
    
    
    def test_query_pass_extra_list():
        client = TestClient(app)
        resp = client.get(
            "/query",
            params={
                "param": "123",
                "param2": ["456", "789"],  # Pass a list of values as extra parameter
            },
        )
        assert resp.status_code == 200
        assert resp.json() == {
            "param": "123",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  8. docs/ko/docs/tutorial/header-params.md

    ## `Header` 임포트
    
    먼저 `Header`를 임포트합니다:
    
    {* ../../docs_src/header_params/tutorial001.py hl[3] *}
    
    ## `Header` 매개변수 선언
    
    `Path`, `Query` 그리고 `Cookie`를 사용한 동일한 구조를 이용하여 헤더 매개변수를 선언합니다.
    
    첫 번째 값은 기본값이며, 추가 검증이나 어노테이션 매개변수 모두 전달할 수 있습니다:
    
    {* ../../docs_src/header_params/tutorial001.py hl[9] *}
    
    /// note | 기술 세부사항
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 3.3K bytes
    - Click Count (0)
  9. docs/de/docs/tutorial/header-params.md

    ## `Header` importieren { #import-header }
    
    Importieren Sie zuerst `Header`:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## `Header`-Parameter deklarieren { #declare-header-parameters }
    
    Deklarieren Sie dann die Header-Parameter mit derselben Struktur wie bei `Path`, `Query` und `Cookie`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Sep 20 15:10:09 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  10. docs/zh/docs/tutorial/header-params.md

    定义 `Header` 参数的方式与定义 `Query`、`Path`、`Cookie` 参数相同。
    
    ## 导入 `Header`
    
    首先,导入 `Header`:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## 声明 `Header` 参数
    
    然后,使用和 `Path`、`Query`、`Cookie` 一样的结构定义 header 参数。
    
    第一个值是默认值,还可以传递所有验证参数或注释参数:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[9] *}
    
    /// note | 技术细节
    
    `Header` 是 `Path`、`Query`、`Cookie` 的**兄弟类**,都继承自共用的 `Param` 类。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 2.5K bytes
    - Click Count (0)
Back to Top