Stop streaming HTTP response non-gracefully
未關閉
- 主要語言
- Rust
- 星號
- 24.8k
- 分支
- 1.9k
- 平均合併
- 23 小時 10 分鐘
- 30 天內合併 PR
- 26
描述
Imagine you have a route with streaming HTTP response.
You download something from somewhere and send it to the user as soon as you receive it.
Now imagine as you download next chunk unrecoverable error happens, you can no longer proceed.
I wasn't able to find how to stop actor in such a way that response will be interrupted, signaling to the user that response is not complete. Instead actor stopping seems to always finish response gracefully and user silently gets incomplete response (file for instance).
It would be great to have some API to be able to achieve above goal.
貢獻指南
評估
這個 Issue 還沒有評估資料。