Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add struct Accepted as a shortcut #3224

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anagno
Copy link

@anagno anagno commented Feb 14, 2025

Similar to #2978 I am adding a struct for the Accepted response

Motivation

We have a server that we have to trigger a request and it needs to return Accepted. Since there is already a shortcut for No Content, I thought of adding a similar one for Accepted

Solution

Adding the additional stuct for shortcut, instead of having to define it always in my code

Similar to tokio-rs#2978 I am adding a struct
for the Accepted response

Signed-off-by: Vasileios Anagnostopoulos <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant