Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 288 for cookie (0.1 sec)

  1. docs/de/docs/advanced/response-directly.md

    Sie können jedoch direkt eine `JSONResponse` von Ihren *Pfadoperationen* zurückgeben.
    
    Das kann beispielsweise nützlich sein, um benutzerdefinierte Header oder Cookies zurückzugeben.
    
    ## Eine `Response` zurückgeben
    
    Tatsächlich können Sie jede `Response` oder jede Unterklasse davon zurückgeben.
    
    /// tip | "Tipp"
    
    `JSONResponse` selbst ist eine Unterklasse von `Response`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. docs/es/docs/advanced/response-directly.md

    Pero puedes devolver una `JSONResponse` directamente de tu *operación de path*.
    
    Esto puede ser útil, por ejemplo, para devolver cookies o headers personalizados.
    
    ## Devolver una `Response`
    
    De hecho, puedes devolver cualquier `Response` o cualquier subclase de la misma.
    
    /// tip | Consejo
    
    `JSONResponse` en sí misma es una subclase de `Response`.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. docs/pt/docs/deployment/docker.md

    2. Defina o diretório de trabalho atual para `/code`.
    
        Esse é o diretório onde colocaremos o arquivo `requirements.txt` e o diretório `app`.
    
    3. Copie o arquivo com os requisitos para o diretório `/code`.
    
        Copie **somente** o arquivo com os requisitos primeiro, não o resto do código.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  4. docs/zh/docs/advanced/using-request-directly.md

    # 直接使用请求
    
    至此,我们已经使用多种类型声明了请求的各种组件。
    
    并从以下对象中提取数据:
    
    * 路径参数
    * 请求头
    * Cookies
    * 等
    
    **FastAPI** 使用这种方式验证数据、转换数据,并自动生成 API 文档。
    
    但有时,我们也需要直接访问 `Request` 对象。
    
    ## `Request` 对象的细节
    
    实际上,**FastAPI** 的底层是 **Starlette**,**FastAPI** 只不过是在  **Starlette** 顶层提供了一些工具,所以能直接使用 Starlette 的  <a href="https://www.starlette.io/requests/" class="external-link" target="_blank">`Request`</a> 对象。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. docs/fr/docs/advanced/response-directly.md

    Mais vous pouvez retourner une `JSONResponse` directement à partir de vos *opérations de chemin*.
    
    Cela peut être utile, par exemple, pour retourner des en-têtes personnalisés ou des cookies.
    
    ## Renvoyer une `Response`
    
    En fait, vous pouvez retourner n'importe quelle `Response` ou n'importe quelle sous-classe de celle-ci.
    
    /// note | "Remarque"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/response-directly.md

    But you can return a `JSONResponse` directly from your *path operations*.
    
    It might be useful, for example, to return custom headers or cookies.
    
    ## Return a `Response`
    
    In fact, you can return any `Response` or any sub-class of it.
    
    /// tip
    
    `JSONResponse` itself is a sub-class of `Response`.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/query-param-models.md

    ```
    
    ## Resumo
    
    Você pode utilizar **modelos Pydantic** para declarar **parâmetros de consulta** no **FastAPI**. 😎
    
    /// tip | Dica
    
    Alerta de spoiler: você também pode utilizar modelos Pydantic para declarar cookies e cabeçalhos, mas você irá ler sobre isso mais a frente no tutorial. 🤫
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 15 09:53:14 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/security/index.md

    OpenAPI может использовать следующие схемы авторизации:
    
    * `apiKey`: уникальный идентификатор для приложения, который может быть получен из:
        * Параметров запроса.
        * Заголовка.
        * Cookies.
    * `http`: стандартные системы аутентификации по протоколу HTTP, включая:
        * `bearer`: заголовок `Authorization` со значением `Bearer {уникальный токен}`. Это унаследовано от OAuth2.
        * Базовая аутентификация по протоколу HTTP.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/index.md

    ## Rode o código
    
    Todos os blocos de código podem ser copiados e utilizados diretamente (eles são, na verdade, arquivos Python testados).
    
    Para rodar qualquer um dos exemplos, copie o codigo para um arquivo `main.py`, e inicie o `uvivorn` com:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --reload
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. docs/zh/docs/advanced/response-directly.md

    然后,**FastAPI** 会在后台将这些兼容 JSON 的数据(比如字典)放到一个 `JSONResponse` 中,该 `JSONResponse` 会用来发送响应给客户端。
    
    但是你可以在你的 *路径操作* 中直接返回一个 `JSONResponse`。
    
    直接返回响应可能会有用处,比如返回自定义的响应头和 cookies。
    
    ## 返回 `Response`
    
    事实上,你可以返回任意 `Response` 或者任意 `Response` 的子类。
    
    /// tip | "小贴士"
    
    `JSONResponse` 本身是一个 `Response` 的子类。
    
    ///
    
    当你返回一个 `Response` 时,**FastAPI** 会直接传递它。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top