Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for RedirectResponse (0.17 sec)

  1. docs/zh/docs/advanced/custom-response.md

    在处理某些边缘情况时,`ujson` 不如 Python 的内置实现那么谨慎。
    
    ///
    
    ```Python hl_lines="2 7"
    {!../../docs_src/custom_response/tutorial001.py!}
    ```
    
    /// tip | "小贴士"
    
    `ORJSONResponse` 可能是一个更快的选择。
    
    ///
    
    ### `RedirectResponse`
    
    返回 HTTP 重定向。默认情况下使用 307 状态代码(临时重定向)。
    
    ```Python hl_lines="2  9"
    {!../../docs_src/custom_response/tutorial006.py!}
    ```
    
    ### `StreamingResponse`
    
    采用异步生成器或普通生成器/迭代器,然后流式传输响应主体。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. docs/ja/docs/advanced/custom-response.md

    ///
    
    ```Python hl_lines="2  7"
    {!../../docs_src/custom_response/tutorial001.py!}
    ```
    
    /// tip | "豆知識"
    
    `ORJSONResponse` のほうが高速な代替かもしれません。
    
    ///
    
    ### `RedirectResponse`
    
    HTTPリダイレクトを返します。デフォルトでは307ステータスコード (Temporary Redirect) となります。
    
    ```Python hl_lines="2  9"
    {!../../docs_src/custom_response/tutorial006.py!}
    ```
    
    ### `StreamingResponse`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  3. 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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  4. docs/en/docs/release-notes.md

    ## 0.66.0
    
    ### Features
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Nov 01 11:25:57 UTC 2024
    - 460.3K bytes
    - Viewed (0)
Back to top