Ability to get ownership of error of response
Offen
- Vorherrschende Sprache
- Rust
- Sterne
- 24.8k
- Forks
- 1.9k
- Ø Merge
- 23 Std. 10 Min.
- Gemergte PRs (30 T.)
- 26
Beschreibung
The [`HttpResponse`](https://docs.rs/actix-web/latest/actix_web/struct.HttpResponse.html#) struct allows to get a reference to the optional error with its [`error()`](https://docs.rs/actix-web/latest/actix_web/struct.HttpResponse.html#method.error) method, but we can't retrieve its ownership, which could be useful when mapping error reponses in middlewares.
It would be useful to have an additional method to get the ownership of the error.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.