Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for jsonable_encoder (0.22 sec)

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

    ```Python hl_lines="2  7"
    {!../../../docs_src/custom_response/tutorial001b.py!}
    ```
    
    !!! info
    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)
  2. docs/en/docs/advanced/custom-response.md

    But if you are certain that the content that you are returning is **serializable with JSON**, you can pass it directly to the response class and avoid the extra overhead that FastAPI would have by passing your return content through the `jsonable_encoder` before passing it to the response class.
    
    ```Python hl_lines="2  7"
    {!../../../docs_src/custom_response/tutorial001b.py!}
    ```
    
    !!! info
    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)
  3. docs/em/docs/advanced/custom-response.md

    ✋️ 🚥 👆 🎯 👈 🎚 👈 👆 🛬 **🎻 ⏮️ 🎻**, 👆 💪 🚶‍♀️ ⚫️ 🔗 📨 🎓 & ❎ ➕ 🌥 👈 FastAPI 🔜 ✔️ 🚶‍♀️ 👆 📨 🎚 🔘 `jsonable_encoder` ⏭ 🚶‍♀️ ⚫️ 📨 🎓.
    
    ```Python hl_lines="2  7"
    {!../../../docs_src/custom_response/tutorial001b.py!}
    ```
    
    !!! info
        🔢 `response_class` 🔜 ⚙️ 🔬 "📻 🆎" 📨.
    
    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