Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 297 for Cookie2 (0.07 seconds)

  1. tests/test_repeated_cookie_headers.py

    from fastapi import Depends, FastAPI, Response
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    def set_cookie(*, response: Response):
        response.set_cookie("cookie-name", "cookie-value")
        return {}
    
    
    def set_indirect_cookie(*, dep: str = Depends(set_cookie)):
        return dep
    
    
    @app.get("/directCookie")
    def get_direct_cookie(dep: str = Depends(set_cookie)):
        return {"dep": dep}
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Jun 13 12:44:51 GMT 2020
    - 792 bytes
    - Click Count (0)
  2. docs/es/docs/advanced/response-headers.md

    **FastAPI** usará ese response *temporal* para extraer los headers (también cookies y el código de estado), y los pondrá en el response final que contiene el valor que devolviste, filtrado por cualquier `response_model`.
    
    También puedes declarar el parámetro `Response` en dependencias y establecer headers (y cookies) en ellas.
    
    ## Retorna una `Response` directamente { #return-a-response-directly }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  3. docs/uk/docs/index.md

    * <abbr title="також відомий як: serialization, parsing, marshalling">Перетворення</abbr> вхідних даних: з мережі до даних і типів Python. Читання з:
        * JSON.
        * Параметрів шляху.
        * Параметрів запиту.
        * Cookies.
        * Headers.
        * Forms.
        * Файлів.
    * <abbr title="також відомий як: serialization, parsing, marshalling">Перетворення</abbr> вихідних даних: з типів і даних Python до мережевих даних (як JSON):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 24.2K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/header-params.md

    You can define Header parameters the same way you define `Query`, `Path` and `Cookie` parameters.
    
    ## Import `Header` { #import-header }
    
    First import `Header`:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## Declare `Header` parameters { #declare-header-parameters }
    
    Then declare the header parameters using the same structure as with `Path`, `Query` and `Cookie`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 3K bytes
    - Click Count (0)
  5. docs/de/docs/advanced/response-headers.md

    **FastAPI** verwendet diese *vorübergehende* Response, um die Header (auch Cookies und Statuscode) zu extrahieren und fügt diese in die endgültige Response ein, die den von Ihnen zurückgegebenen Wert enthält, gefiltert nach einem beliebigen `response_model`.
    
    Sie können den Parameter `Response` auch in Abhängigkeiten deklarieren und darin Header (und Cookies) festlegen.
    
    ## Eine `Response` direkt zurückgeben { #return-a-response-directly }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.8K bytes
    - Click Count (2)
  6. 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 Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  7. 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 Dec 30 11:13:12 GMT 2025
    - Last Modified: Wed Dec 03 00:18:09 GMT 2025
    - 24.7K bytes
    - Click Count (0)
  8. docs/ru/docs/advanced/response-headers.md

    **FastAPI** использует этот *временный* ответ, чтобы извлечь HTTP-заголовки (а также cookie и статус-код) и поместит их в финальный HTTP-ответ, который содержит возвращённое вами значение, отфильтрованное согласно `response_model`.
    
    Вы также можете объявлять параметр `Response` в зависимостях и устанавливать в них заголовки (и cookie).
    
    ## Вернуть `Response` напрямую { #return-a-response-directly }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/internal.kt

    import okhttp3.internal.connection.RealConnection
    
    internal fun parseCookie(
      currentTimeMillis: Long,
      url: HttpUrl,
      setCookie: String,
    ): Cookie? = Cookie.parse(currentTimeMillis, url, setCookie)
    
    internal fun cookieToString(
      cookie: Cookie,
      forObsoleteRfc2965: Boolean,
    ): String = cookie.toString(forObsoleteRfc2965)
    
    internal fun addHeaderLenient(
      builder: Headers.Builder,
      line: String,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri May 30 21:28:20 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  10. 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 Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.6K bytes
    - Click Count (0)
Back to Top