Write proper Responder #7
Labels
No Label
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 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: rusty-bever/common-rs#7
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. 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.