Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 294 for cookie2 (0.28 sec)

  1. docs/changelogs/changelog_4x.md

    
    ## Version 4.9.2
    
    _2021-09-30_
    
     *  Fix: Don't include potentially-sensitive header values in `Headers.toString()` or exceptions.
        This applies to `Authorization`, `Cookie`, `Proxy-Authorization`, and `Set-Cookie` headers.
     *  Fix: Don't crash with an `InaccessibleObjectException` when running on JDK17+ with strong
        encapsulation enabled.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  2. docs_src/dependencies/tutorial005_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import Cookie, Depends, FastAPI
    
    app = FastAPI()
    
    
    def query_extractor(q: Union[str, None] = None):
        return q
    
    
    def query_or_cookie_extractor(
        q: Annotated[str, Depends(query_extractor)],
        last_query: Annotated[Union[str, None], Cookie()] = None,
    ):
        if not q:
            return last_query
        return q
    
    
    @app.get("/items/")
    async def read_query(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 529 bytes
    - Viewed (0)
  3. docs_src/websockets/tutorial002_py39.py

    from typing import Union
    
    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)">
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  4. docs_src/cookie_params/tutorial001_an_py310.py

    from typing import Annotated
    
    from fastapi import Cookie, FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(ads_id: Annotated[str | None, Cookie()] = None):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 205 bytes
    - Viewed (0)
  5. docs_src/cookie_params/tutorial001_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import Cookie, FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(ads_id: Annotated[Union[str, None], Cookie()] = None):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 218 bytes
    - Viewed (0)
  6. fastapi/__init__.py

    from .exceptions import HTTPException as HTTPException
    from .exceptions import WebSocketException as WebSocketException
    from .param_functions import Body as Body
    from .param_functions import Cookie as Cookie
    from .param_functions import Depends as Depends
    from .param_functions import File as File
    from .param_functions import Form as Form
    from .param_functions import Header as Header
    from .param_functions import Path as Path
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 15:19:50 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  7. 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_py39.py hl[1,9,12] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  8. docs/es/docs/tutorial/cors.md

    También es posible declarar la lista como `"*"` (un "comodín") para decir que todos están permitidos.
    
    Pero eso solo permitirá ciertos tipos de comunicación, excluyendo todo lo que implique credenciales: Cookies, headers de autorización como los utilizados con Bearer Tokens, etc.
    
    Así que, para que todo funcione correctamente, es mejor especificar explícitamente los orígenes permitidos.
    
    ## Usa `CORSMiddleware` { #use-corsmiddleware }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/response-change-status-code.md

    ## Einen `Response`-Parameter verwenden { #use-a-response-parameter }
    
    Sie können einen Parameter vom Typ `Response` in Ihrer *Pfadoperation-Funktion* deklarieren (wie Sie es auch für Cookies und Header tun können).
    
    Anschließend können Sie den `status_code` in diesem *vorübergehenden* <abbr title="Response – Antwort: Daten, die der Server zum anfragenden Client zurücksendet">Response</abbr>-Objekt festlegen.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2K bytes
    - Viewed (0)
  10. docs/es/docs/advanced/response-change-status-code.md

    Para esos casos, puedes usar un parámetro `Response`.
    
    ## Usa un parámetro `Response` { #use-a-response-parameter }
    
    Puedes declarar un parámetro de tipo `Response` en tu *path operation function* (como puedes hacer para cookies y headers).
    
    Y luego puedes establecer el `status_code` en ese objeto de response *temporal*.
    
    {* ../../docs_src/response_change_status_code/tutorial001_py39.py hl[1,9,12] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.7K bytes
    - Viewed (0)
Back to top