Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 85 of 85 for mediaType (0.04 sec)

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

    다음 매개변수를 받을 수 있습니다:
    
    * `content` - `str` 또는 `bytes`.
    * `status_code` - HTTP 상태코드를 나타내는  `int`.
    * `headers` - 문자열로 이루어진 `dict`.
    * `media_type` - 미디어 타입을 나타내는 `str` 예: `"text/html"`.
    
    FastAPI (실제로는 Starlette)가 자동으로 `Content-Length` 헤더를 포함시킵니다. 또한 `media_type`에 기반하여 `Content-Type` 헤더를 포함하며, 텍스트 타입의 경우 문자 집합을 추가 합니다.
    
    {* ../../docs_src/response_directly/tutorial002.py hl[1,18] *}
    
    ### `HTMLResponse`
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Feb 15 11:21:20 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/custom-response.md

    * `content` - A `str` or `bytes`.
    * `status_code` - An `int` HTTP status code.
    * `headers` - A `dict` of strings.
    * `media_type` - A `str` giving the media type. E.g. `"text/html"`.
    
    FastAPI (actually Starlette) will automatically include a Content-Length header. It will also include a Content-Type header, based on the `media_type` and appending a charset for text types.
    
    {* ../../docs_src/response_directly/tutorial002.py hl[1,18] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  3. docs/pt/docs/advanced/custom-response.md

    * `status_code` - Um código de status HTTP do tipo `int`.
    * `headers` - Um dicionário `dict` de strings.
    * `media_type` - Uma `str` informando o media type. E.g. `"text/html"`.
    
    O FastAPI (Starlette, na verdade) irá incluir o cabeçalho Content-Length automaticamente. Ele também irá incluir o cabeçalho Content-Type, baseado no `media_type` e acrescentando uma codificação para tipos textuais.
    
    {* ../../docs_src/response_directly/tutorial002.py hl[1,18] *}
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/custom-response.md

    ### `Response`
    
    👑 `Response` 🎓, 🌐 🎏 📨 😖 ⚪️➡️ ⚫️.
    
    👆 💪 📨 ⚫️ 🔗.
    
    ⚫️ 🚫 📄 🔢:
    
    * `content` - `str` ⚖️ `bytes`.
    * `status_code` - `int` 🇺🇸🔍 👔 📟.
    * `headers` - `dict` 🎻.
    * `media_type` - `str` 🤝 📻 🆎. 🤶 Ⓜ. `"text/html"`.
    
    FastAPI (🤙 💃) 🔜 🔁 🔌 🎚-📐 🎚. ⚫️ 🔜 🔌 🎚-🆎 🎚, ⚓️ 🔛 = & 🔁 = ✍ 🆎.
    
    {* ../../docs_src/response_directly/tutorial002.py hl[1,18] *}
    
    ### `HTMLResponse`
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

    ### Refactors
    
    * ♻ Remove `media_type` from `ORJSONResponse` as it's inherited from the parent class. PR [#5805](https://github.com/tiangolo/fastapi/pull/5805) by [@Kludex](https://github.com/Kludex).
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
Back to top