actix / actix/actix-web

Ability to get ownership of error of response

Aperta
#3,758 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
24.8k
Fork
1.9k
Merge medio
23h 10m
PR unite (30g)
26

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.