Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 310 for cookey (0.11 sec)

  1. tests/test_openapi_examples.py

    def cookie_examples(
        data: Union[str, None] = Cookie(
            default=None,
            examples=["json_schema_cookie1", "json_schema_cookie2"],
            openapi_examples={
                "Cookie One": {
                    "summary": "Cookie One Summary",
                    "description": "Cookie One Description",
                    "value": "cookie1",
                },
                "Cookie Two": {
                    "value": "cookie2",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 15:57:43 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/cookie-params.md

    ```
    
    ////
    
    /// note | "๐Ÿ“ก โ„น"
    
    `Cookie` "๐Ÿ‘ญ" ๐ŸŽ“ `Path` & `Query`. โšซ๏ธ ๐Ÿ˜– โšช๏ธโžก๏ธ ๐ŸŽ โš  `Param` ๐ŸŽ“.
    
    โœ‹๏ธ ๐Ÿ’ญ ๐Ÿ‘ˆ ๐Ÿ•โ” ๐Ÿ‘† ๐Ÿ—„ `Query`, `Path`, `Cookie` & ๐ŸŽ โšช๏ธโžก๏ธ `fastapi`, ๐Ÿ‘ˆ ๐Ÿค™ ๐Ÿ”ข ๐Ÿ‘ˆ ๐Ÿ“จ ๐ŸŽ ๐ŸŽ“.
    
    ///
    
    /// info
    
    ๐Ÿ“ฃ ๐Ÿช, ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ `Cookie`, โ†ฉ๏ธ โช ๐Ÿ”ข ๐Ÿ”œ ๐Ÿ”ฌ ๐Ÿ”ข ๐Ÿ”ข.
    
    ///
    
    ## ๐ŸŒƒ
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/cookie-params.md

    ```
    
    ////
    
    /// note | "ๆŠ€ๆœฏ็ป†่Š‚"
    
    `Cookie` ใ€`Path` ใ€`Query` ๆ˜ฏ**ๅ…„ๅผŸ็ฑป**๏ผŒ้ƒฝ็ปงๆ‰ฟ่‡ชๅ…ฑ็”จ็š„ `Param` ็ฑปใ€‚
    
    ๆณจๆ„๏ผŒไปŽ `fastapi` ๅฏผๅ…ฅ็š„ `Query`ใ€`Path`ใ€`Cookie` ็ญ‰ๅฏน่ฑก๏ผŒๅฎž้™…ไธŠๆ˜ฏ่ฟ”ๅ›ž็‰นๆฎŠ็ฑป็š„ๅ‡ฝๆ•ฐใ€‚
    
    ///
    
    /// info | "่ฏดๆ˜Ž"
    
    ๅฟ…้กปไฝฟ็”จ `Cookie` ๅฃฐๆ˜Ž cookie ๅ‚ๆ•ฐ๏ผŒๅฆๅˆ™่ฏฅๅ‚ๆ•ฐไผš่ขซ่งฃ้‡ŠไธบๆŸฅ่ฏขๅ‚ๆ•ฐใ€‚
    
    ///
    
    ## ๅฐ็ป“
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/cookie-params.md

    ```
    
    ////
    
    /// note | "๊ธฐ์ˆ  ์„ธ๋ถ€์‚ฌํ•ญ"
    
    `Cookie`๋Š” `Path` ๋ฐ `Query`์˜ "์ž๋งค"ํด๋ž˜์Šค์ž…๋‹ˆ๋‹ค. ์ด ์—ญ์‹œ ๋™์ผํ•œ ๊ณตํ†ต `Param` ํด๋ž˜์Šค๋ฅผ ์ƒ์†ํ•ฉ๋‹ˆ๋‹ค.
    
    `Query`, `Path`, `Cookie` ๊ทธ๋ฆฌ๊ณ  ๋‹ค๋ฅธ ๊ฒƒ๋“ค์€ `fastapi`์—์„œ ์ž„ํฌํŠธ ํ•  ๋•Œ, ์‹ค์ œ๋กœ๋Š” ํŠน๋ณ„ํ•œ ํด๋ž˜์Šค๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋Š” ํ•จ์ˆ˜์ž„์„ ๊ธฐ์–ตํ•˜์„ธ์š”.
    
    ///
    
    /// info | "์ •๋ณด"
    
    ์ฟ ํ‚ค๋ฅผ ์„ ์–ธํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” `Cookie`๋ฅผ ์‚ฌ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋ ‡์ง€ ์•Š์œผ๋ฉด ํ•ด๋‹น ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ์ฟผ๋ฆฌ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ํ•ด์„ํ•˜๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค.
    
    ///
    
    ## ์š”์•ฝ
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. docs/ko/docs/advanced/response-cookies.md

    ๋˜ํ•œ `Response`๋Š” ํ—ค๋”์™€ ์ฟ ํ‚ค๋ฅผ ์„ค์ •ํ•˜๋Š” ๋ฐ ์ž์ฃผ ์‚ฌ์šฉ๋˜๋ฏ€๋กœ, **FastAPI**๋Š” ์ด๋ฅผ `fastapi.Response`๋กœ๋„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 10:32:45 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingCookieJar.kt

      private val requestCookies: Deque<List<Cookie>> = ArrayDeque()
      private val responseCookies: Deque<List<Cookie>> = ArrayDeque()
    
      fun enqueueRequestCookies(vararg cookies: Cookie) {
        requestCookies.add(cookies.toList())
      }
    
      fun takeResponseCookies(): List<Cookie> {
        return responseCookies.removeFirst()
      }
    
      fun assertResponseCookies(vararg cookies: String?) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/CookieJar.kt

       * cookies.
       */
      fun saveFromResponse(
        url: HttpUrl,
        cookies: List<Cookie>,
      )
    
      /**
       * Load cookies from the jar for an HTTP request to [url]. This method returns a possibly
       * empty list of cookies for the network request.
       *
       * Simple implementations will return the accepted cookies that have not yet expired and that
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

        }
    
        return responseBuilder.build()
      }
    
      /** Returns a 'Cookie' HTTP request header with all cookies, like `a=b; c=d`. */
      private fun cookieHeader(cookies: List<Cookie>): String =
        buildString {
          cookies.forEachIndexed { index, cookie ->
            if (index > 0) append("; ")
            append(cookie.name).append('=').append(cookie.value)
          }
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_cookie_param_models/test_tutorial002.py

        client = TestClient(mod.app)
        return client
    
    
    def test_cookie_param_model(client: TestClient):
        with client as c:
            c.cookies.set("session_id", "123")
            c.cookies.set("fatebook_tracker", "456")
            c.cookies.set("googall_tracker", "789")
            response = c.get("/items/")
        assert response.status_code == 200
        assert response.json() == {
            "session_id": "123",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. docs_src/cookie_param_models/tutorial001_py310.py

    from fastapi import Cookie, FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Cookies(BaseModel):
        session_id: str
        fatebook_tracker: str | None = None
        googall_tracker: str | None = None
    
    
    @app.get("/items/")
    async def read_items(cookies: Cookies = Cookie()):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 303 bytes
    - Viewed (0)
Back to top