Stop streaming HTTP response non-gracefully
Offen
- Vorherrschende Sprache
- Rust
- Sterne
- 24.8k
- Forks
- 1.9k
- Ø Merge
- 23 Std. 10 Min.
- Gemergte PRs (30 T.)
- 26
Beschreibung
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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.