- Sort Score
- Num 10 results
- Language All
Results 111 - 120 of 358 for cookie1 (0.07 seconds)
-
docs/tr/docs/features.md
* API anahtarları: * Header’larda. * Query parametrelerinde. * Cookie’lerde vb. Buna ek olarak Starlette’in tüm güvenlik özellikleri (**session cookies** dâhil). Tümü, sistemleriniz, veri depolarınız, ilişkisel ve NoSQL veritabanlarınız vb. ile kolayca entegre edilebilen, yeniden kullanılabilir araçlar ve bileşenler olarak inşa edilmiştir.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 10.1K bytes - Click Count (0) -
docs_src/dependencies/tutorial005_py310.py
from fastapi import Cookie, Depends, FastAPI app = FastAPI() def query_extractor(q: str | None = None): return q def query_or_cookie_extractor( q: str = Depends(query_extractor), last_query: str | None = Cookie(default=None) ): if not q: return last_query return q @app.get("/items/") async def read_query(query_or_default: str = Depends(query_or_cookie_extractor)):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 443 bytes - Click Count (0) -
docs/pt/docs/advanced/response-headers.md
**FastAPI** usará essa resposta *temporária* para extrair os cabeçalhos (cookies e código de status também) e os colocará na resposta final que contém o valor que você retornou, filtrado por qualquer `response_model`. Você também pode declarar o parâmetro `Response` em dependências e definir cabeçalhos (e cookies) nelas. ## Retorne uma `Response` diretamente { #return-a-response-directly }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 2.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallLimitsTest.kt
@Test fun largeResponseHeadersList() { server.enqueue( MockResponse .Builder() .addHeader("Set-Cookie", "a=${"A".repeat(255 * 1024)}") .addHeader("Set-Cookie", "b=${"B".repeat(1 * 1024)}") .body("I'm not even supposed to be here today.") .build(), ) val call = client.newCall(Request(url = server.url("/")))
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 3.5K bytes - Click Count (0) -
docs_src/dependencies/tutorial005_an_py310.py
from typing import Annotated from fastapi import Cookie, Depends, FastAPI app = FastAPI() def query_extractor(q: str | None = None): return q def query_or_cookie_extractor( q: Annotated[str, Depends(query_extractor)], last_query: Annotated[str | None, Cookie()] = None, ): if not q: return last_query return q @app.get("/items/") async def read_query(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 510 bytes - Click Count (0) -
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 Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 8.7K bytes - Click Count (0) -
doc/godebug.md
of cookies that net/http will accept when parsing HTTP headers. If the number of cookie in a header exceeds the number set in `httpcookiemaxnum`, cookie parsing will fail early. The default value is `httpcookiemaxnum=3000`. Setting `httpcookiemaxnum=0` will allow the cookie parsing to accept an indefinite number of cookies. To avoid denial of service attacks, this setting and default
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Mar 20 15:49:10 GMT 2026 - 26K bytes - Click Count (0) -
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 Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Sep 30 11:24:39 GMT 2025 - 5K bytes - Click Count (0) -
docs/ru/docs/advanced/response-change-status-code.md
Для таких случаев вы можете использовать параметр `Response`. ## Использование параметра `Response` { #use-a-response-parameter } Вы можете объявить параметр типа `Response` в вашей *функции обработки пути* (как и для cookies и HTTP-заголовков). И затем вы можете установить `status_code` в этом *временном* объекте ответа. {* ../../docs_src/response_change_status_code/tutorial001_py310.py hl[1,9,12] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 2.7K bytes - Click Count (0) -
docs_src/websockets_/tutorial002_an_py310.py
from typing import Annotated from fastapi import ( Cookie, Depends, FastAPI, Query, WebSocket, WebSocketException, status, ) from fastapi.responses import HTMLResponse app = FastAPI() html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <form action="" onsubmit="sendMessage(event)">
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 12:34:37 GMT 2026 - 2.8K bytes - Click Count (0)