Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for 29 (0.12 sec)

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

    {!../../../docs_src/custom_response/tutorial001.py!}
    ```
    
    !!! tip "小贴士"
        `ORJSONResponse` 可能是一个更快的选择。
    
    ### `RedirectResponse`
    
    返回 HTTP 重定向。默认情况下使用 307 状态代码(临时重定向)。
    
    ```Python hl_lines="2  9"
    {!../../../docs_src/custom_response/tutorial006.py!}
    ```
    
    ### `StreamingResponse`
    
    采用异步生成器或普通生成器/迭代器,然后流式传输响应主体。
    
    ```Python hl_lines="2  14"
    {!../../../docs_src/custom_response/tutorial007.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 7.8K bytes
    - Viewed (1)
  2. docs/de/docs/advanced/custom-response.md

    Gibt eine HTTP-Weiterleitung (HTTP-Redirect) zurück. Verwendet standardmäßig den Statuscode 307 – Temporäre Weiterleitung (Temporary Redirect).
    
    Sie können eine `RedirectResponse` direkt zurückgeben:
    
    ```Python hl_lines="2  9"
    {!../../../docs_src/custom_response/tutorial006.py!}
    ```
    
    ---
    
    Oder Sie können sie im Parameter `response_class` verwenden:
    
    
    ```Python hl_lines="2  7  9"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 23 13:05:12 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  3. docs/ja/docs/advanced/custom-response.md

    ```
    
    !!! tip "豆知識"
        `ORJSONResponse` のほうが高速な代替かもしれません。
    
    ### `RedirectResponse`
    
    HTTPリダイレクトを返します。デフォルトでは307ステータスコード (Temporary Redirect) となります。
    
    ```Python hl_lines="2  9"
    {!../../../docs_src/custom_response/tutorial006.py!}
    ```
    
    ### `StreamingResponse`
    
    非同期なジェネレータか通常のジェネレータ・イテレータを受け取り、レスポンスボディをストリームします。
    
    ```Python hl_lines="2  14"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jul 19 19:14:58 GMT 2021
    - 10.7K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/custom-response.md

    ### `RedirectResponse`
    
    Returns an HTTP redirect. Uses a 307 status code (Temporary Redirect) by default.
    
    You can return a `RedirectResponse` directly:
    
    ```Python hl_lines="2  9"
    {!../../../docs_src/custom_response/tutorial006.py!}
    ```
    
    ---
    
    Or you can use it in the `response_class` parameter:
    
    
    ```Python hl_lines="2  7  9"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  5. docs/em/docs/advanced/custom-response.md

    ```
    
    !!! tip
        ⚫️ 💪 👈 `ORJSONResponse` 💪 ⏩ 🎛.
    
    ### `RedirectResponse`
    
    📨 🇺🇸🔍 ❎. ⚙️ 3️⃣0️⃣7️⃣ 👔 📟 (🍕 ❎) 🔢.
    
    👆 💪 📨 `RedirectResponse` 🔗:
    
    ```Python hl_lines="2  9"
    {!../../../docs_src/custom_response/tutorial006.py!}
    ```
    
    ---
    
    ⚖️ 👆 💪 ⚙️ ⚫️ `response_class` 🔢:
    
    
    ```Python hl_lines="2  7  9"
    {!../../../docs_src/custom_response/tutorial006b.py!}
    ```
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 9.8K bytes
    - Viewed (0)
Back to top