Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 191 for custom (0.45 sec)

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

    ```Python hl_lines="2  10"
    {!../../../docs_src/custom_response/tutorial009.py!}
    ```
    
    You can also use the `response_class` parameter:
    
    ```Python hl_lines="2  8  10"
    {!../../../docs_src/custom_response/tutorial009b.py!}
    ```
    
    In this case, you can return the file path directly from your *path operation* function.
    
    ## Custom response class
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/custom-response.md

    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"
    {!../../../docs_src/custom_response/tutorial006b.py!}
    ```
    
    Wenn Sie das tun, können Sie die URL direkt von Ihrer *Pfadoperation*-Funktion zurückgeben.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Jan 23 13:05:12 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/custom-response.md

    ```Python hl_lines="7  21  23"
    {!../../../docs_src/custom_response/tutorial004.py!}
    ```
    
    👉 🖼, 🔢 `generate_html_response()` ⏪ 🏗 & 📨 `Response` ↩️ 🛬 🕸 `str`.
    
    🛬 🏁 🤙 `generate_html_response()`, 👆 ⏪ 🛬 `Response` 👈 🔜 🔐 🔢 **FastAPI** 🎭.
    
    ✋️ 👆 🚶‍♀️ `HTMLResponse` `response_class` 💁‍♂️, **FastAPI** 🔜 💭 ❔ 📄 ⚫️ 🗄 & 🎓 🩺 🕸 ⏮️ `text/html`:
    
    <img src="/img/tutorial/custom-response/image01.png">
    
    ## 💪 📨
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  4. docs/zh/docs/advanced/custom-response.md

    ```Python hl_lines="7 23 21"
    {!../../../docs_src/custom_response/tutorial004.py!}
    ```
    
    在这个例子中,函数 `generate_html_response()` 已经生成并返回 `Response` 对象而不是在 `str` 中返回 HTML。
    
    通过返回函数 `generate_html_response()` 的调用结果,你已经返回一个重载 **FastAPI** 默认行为的 `Response` 对象,
    
    但如果你在 `response_class` 中也传入了 `HTMLResponse`,**FastAPI** 会知道如何在 OpenAPI 和交互式文档中使用 `text/html` 将其文档化为 HTML。
    
    <img src="/img/tutorial/custom-response/image01.png">
    
    ## 可用响应
    
    这里有一些可用的响应。
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 7.8K bytes
    - Viewed (1)
  5. 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`
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jul 19 19:14:58 GMT 2021
    - 10.7K bytes
    - Viewed (0)
  6. docs/sts/custom-token-identity.md

    # AssumeRoleWithCustomToken [![Slack](https://slack.min.io/slack?type=svg)](https://slack.min.io)
    
    ## Introduction
    
    To integrate with custom authentication methods using the [Identity Management Plugin](../iam/identity-management-plugin.md)), MinIO provides an STS API extension called `AssumeRoleWithCustomToken`.
    
    After configuring the plugin, use the generated Role ARN with `AssumeRoleWithCustomToken` to get temporary credentials to access object storage.
    
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri May 27 00:58:09 GMT 2022
    - 3K bytes
    - Viewed (0)
  7. docs/zh/docs/advanced/custom-request-and-route.md

    ```Python hl_lines="13  15"
    {!../../../docs_src/custom_request_and_route/tutorial002.py!}
    ```
    
    发生异常时,`Request` 实例仍在作用域内,因此处理错误时可以读取和使用请求体:
    
    ```Python hl_lines="16-18"
    {!../../../docs_src/custom_request_and_route/tutorial002.py!}
    ```
    
    ## 在路由中自定义 `APIRoute` 类
    
    您还可以设置 `APIRoute` 的 `route_class` 参数:
    
    ```Python hl_lines="26"
    {!../../../docs_src/custom_request_and_route/tutorial003.py!}
    ```
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 22:45:40 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  8. cni/pkg/plugin/testdata/custom-uid.txt.golden

    Jonh Wendell <******@****.***> 1682527168 -0400
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Apr 26 16:39:28 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  9. docs/en/docs/how-to/custom-request-and-route.md

    * Decompressing gzip-compressed request bodies.
    * Automatically logging all request bodies.
    
    ## Handling custom request body encodings
    
    Let's see how to make use of a custom `Request` subclass to decompress gzip requests.
    
    And an `APIRoute` subclass to use that custom request class.
    
    ### Create a custom `GzipRequest` class
    
    !!! tip
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  10. docs/em/docs/how-to/custom-request-and-route.md

    ```Python hl_lines="13  15"
    {!../../../docs_src/custom_request_and_route/tutorial002.py!}
    ```
    
    🚥 ⚠ 📉, `Request` 👐 🔜 ↔, 👥 💪 ✍ &amp; ⚒ ⚙️ 📨 💪 🕐❔ 🚚 ❌:
    
    ```Python hl_lines="16-18"
    {!../../../docs_src/custom_request_and_route/tutorial002.py!}
    ```
    
    ## 🛃 `APIRoute` 🎓 📻
    
    👆 💪 ⚒ `route_class` 🔢 `APIRouter`:
    
    ```Python hl_lines="26"
    {!../../../docs_src/custom_request_and_route/tutorial003.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.6K bytes
    - Viewed (0)
Back to top