actix / actix/actix-web

Ability to get ownership of error of response

Open
#3,758 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
24.8k
Forks
1.9k
Avg merge
23h 10m
Merged PRs (30d)
26

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.