- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for last (0.12 sec)
-
docs/zh/docs/advanced/custom-response.md
与其他响应类型相比,接受不同的参数集进行实例化: * `path` - 要流式传输的文件的文件路径。 * `headers` - 任何自定义响应头,传入字典类型。 * `media_type` - 给出媒体类型的字符串。如果未设置,则文件名或路径将用于推断媒体类型。 * `filename` - 如果给出,它将包含在响应的 `Content-Disposition` 中。 文件响应将包含适当的 `Content-Length`,`Last-Modified` 和 `ETag` 的响应头。 ```Python hl_lines="2 10" {!../../../docs_src/custom_response/tutorial009.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) -
docs/em/docs/advanced/custom-response.md
* `path` - 📁 📁 🎏. * `headers` - 🙆 🛃 🎚 🔌, 📖. * `media_type` - 🎻 🤝 📻 🆎. 🚥 🔢, 📁 ⚖️ ➡ 🔜 ⚙️ 🔑 📻 🆎. * `filename` - 🚥 ⚒, 👉 🔜 🔌 📨 `Content-Disposition`. 📁 📨 🔜 🔌 ☑ `Content-Length`, `Last-Modified` & `ETag` 🎚. ```Python hl_lines="2 10" {!../../../docs_src/custom_response/tutorial009.py!} ``` 👆 💪 ⚙️ `response_class` 🔢: ```Python hl_lines="2 8 10"
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)