- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 516 for cookies (0.07 seconds)
-
docs/zh-hant/docs/tutorial/cookie-params.md
# Cookie 參數 { #cookie-parameters } 你可以用與定義 `Query` 與 `Path` 參數相同的方式定義 Cookie 參數。 ## 匯入 `Cookie` { #import-cookie } 先匯入 `Cookie`: {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[3] *} ## 宣告 `Cookie` 參數 { #declare-cookie-parameters } 然後用與 `Path`、`Query` 相同的結構宣告 `Cookie` 參數。 你可以設定預設值,以及所有額外的驗證或註解參數: {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[9] *} /// note | 技術細節Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 1.5K bytes - Click Count (0) -
docs_src/cookie_param_models/tutorial002_py310.py
from fastapi import Cookie, FastAPI from pydantic import BaseModel app = FastAPI() class Cookies(BaseModel): model_config = {"extra": "forbid"} session_id: str fatebook_tracker: str | None = None googall_tracker: str | None = None @app.get("/items/") async def read_items(cookies: Cookies = Cookie()):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Sep 17 18:54:10 GMT 2024 - 343 bytes - Click Count (0) -
docs_src/cookie_param_models/tutorial001_an_py310.py
from typing import Annotated 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: Annotated[Cookies, Cookie()]):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Sep 17 18:54:10 GMT 2024 - 343 bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt
internal constructor(cookie: Cookie) : this() { this.name = cookie.name this.value = cookie.value this.expiresAt = cookie.expiresAt this.domain = cookie.domain this.path = cookie.path this.secure = cookie.secure this.httpOnly = cookie.httpOnly this.persistent = cookie.persistent this.hostOnly = cookie.hostOnly this.sameSite = cookie.sameSiteCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 23.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/SearchHelperTest.java
Cookie[] cookies = getMockResponse().getCookies(); boolean found = false; for (Cookie cookie : cookies) { if ("FESS_SEARCH_PARAM".equals(cookie.getName())) { found = true; assertNotNull(cookie.getValue()); } } assertTrue(found); getMockRequest().addCookie(cookies[0]);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 19.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt
) get(urlWithIpAddress) val cookies = cookieManager.cookieStore.cookies assertThat(cookies.size).isEqualTo(1) val cookie = cookies[0] assertThat(cookie.name).isEqualTo("a") assertThat(cookie.value).isEqualTo("android") // Converting to a fixed date can cause rounding! assertThat(cookie.maxAge.toDouble()).isCloseTo(60.0, 1.0) assertThat(cookie.path).isEqualTo("/path")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Mar 19 07:46:39 GMT 2026 - 14.5K 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) -
okhttp/src/commonJvmAndroid/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) } }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Jan 11 12:06:21 GMT 2026 - 4.2K bytes - Click Count (0) -
docs/en/docs/advanced/response-headers.md
**FastAPI** will use that *temporal* response to extract the headers (also cookies and status code), and will put them in the final response that contains the value you returned, filtered by any `response_model`. You can also declare the `Response` parameter in dependencies, and set headers (and cookies) in them. ## Return a `Response` directly { #return-a-response-directly }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 2.2K bytes - Click Count (0) -
tests/test_param_include_in_schema.py
200, {"hidden_cookie": "somevalue"}, ), ], ) def test_hidden_cookie(path, cookies, expected_status, expected_response): client = TestClient(app, cookies=cookies) response = client.get(path) assert response.status_code == expected_status assert response.json() == expected_response @pytest.mark.parametrize(Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 8.6K bytes - Click Count (0)