actix / actix/actix-web

Ability to get ownership of error of response

Offen
#3,758 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
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

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.