Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for RedirectResponse (0.31 sec)

  1. docs/ru/docs/tutorial/response-model.md

    И инструменты тоже будут довольны, потому что и `RedirectResponse`, и `JSONResponse` являются подклассами `Response`, так что аннотация типа корректна.
    
    ### Аннотировать подкласс Response { #annotate-a-response-subclass }
    
    Вы также можете использовать подкласс `Response` в аннотации типа:
    
    {* ../../docs_src/response_model/tutorial003_03_py39.py hl[8:9] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/response-model.md

    Dieser einfache Anwendungsfall wird automatisch von FastAPI gehandhabt, weil die Annotation des Rückgabetyps die Klasse (oder eine Unterklasse von) `Response` ist.
    
    Und Tools werden auch glücklich sein, weil sowohl `RedirectResponse` als auch `JSONResponse` Unterklassen von `Response` sind, die Typannotation ist daher korrekt.
    
    ### Eine Unterklasse von Response annotieren { #annotate-a-response-subclass }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/response-model.md

    Este caso simple es manejado automáticamente por FastAPI porque la anotación del tipo de retorno es la clase (o una subclase de) `Response`.
    
    Y las herramientas también estarán felices porque tanto `RedirectResponse` como `JSONResponse` son subclases de `Response`, por lo que la anotación del tipo es correcta.
    
    ### Anotar una Subclase de Response { #annotate-a-response-subclass }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.7K bytes
    - Viewed (0)
  4. fastapi/routing.py

                    Read more about it in the
                    [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/#redirectresponse).
                    """
                ),
            ] = Default(JSONResponse),
            name: Annotated[
                Optional[str],
                Doc(
                    """
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/custom-response.md

    在处理某些边缘情况时,`ujson` 不如 Python 的内置实现那么谨慎。
    
    ///
    
    {* ../../docs_src/custom_response/tutorial001.py hl[2,7] *}
    
    /// tip | 小贴士
    
    `ORJSONResponse` 可能是一个更快的选择。
    
    ///
    
    ### `RedirectResponse`
    
    返回 HTTP 重定向。默认情况下使用 307 状态代码(临时重定向)。
    
    {* ../../docs_src/custom_response/tutorial006.py hl[2,9] *}
    
    ### `StreamingResponse`
    
    采用异步生成器或普通生成器/迭代器,然后流式传输响应主体。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. fastapi/applications.py

                    Read more about it in the
                    [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/#redirectresponse).
                    """
                ),
            ] = Default(JSONResponse),
            name: Annotated[
                Optional[str],
                Doc(
                    """
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 176.3K bytes
    - Viewed (0)
  7. docs/ja/docs/advanced/custom-response.md

    ///
    
    {* ../../docs_src/custom_response/tutorial001.py hl[2,7] *}
    
    /// tip | 豆知識
    
    `ORJSONResponse` のほうが高速な代替かもしれません。
    
    ///
    
    ### `RedirectResponse`
    
    HTTPリダイレクトを返します。デフォルトでは307ステータスコード (Temporary Redirect) となります。
    
    {* ../../docs_src/custom_response/tutorial006.py hl[2,9] *}
    
    ### `StreamingResponse`
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. docs/en/docs/release-notes.md

    ## 0.66.0
    
    ### Features
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top