Write proper Responder #7
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
idea
invalid
question
sprint
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rusty-bever/common-rs#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We currently just use the built-in Rocket responders for most things, but those have multiple drawbacks:
Both these issues could be solved by writing our own responder struct that implements the Responder trait. This would allow us to still have control over the content of our message, even if the backend operations fail. We could just make the responder itself never fail, allowing us to fully control the output of our APIs.