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

Wip experiemental actix_web auto-repsonses #649

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

juhaku
Copy link
Owner

@juhaku juhaku commented Jun 12, 2023

Experiemental actix_web auto-responses from handler return type.

There are noticeable drawbacks with the automatic response resolution. And the biggest one is question "How to override response a type that is resolved automatically? Or even ignore one?"

Currently I have no idea on how to proceed with this one. And as the implementation is now, is too limiting, meaning it does not cooperate well with the tuple style responses.

Any ideas are welcome.

#591

Experiemental actix_web auto-responses from handler return type.

There are noticeable drawbacks with the automatic response resolution.
And the biggest one is question "How to override response a type that is
resolved automatically? Or even ignore one?"

Currently I have no idea on how to proceed with this one. And as the
implementation is now, is too limiting, meaning it does not cooperate
well with the tuple style responses.

Any ideas are welcome.
@juhaku juhaku added Refinement Needed Refinement needed if possible enhancement New feature or request labels Jun 12, 2023
@DenuxPlays
Copy link

Any updates?

@juhaku
Copy link
Owner Author

juhaku commented Feb 18, 2024

Any updates?

Not at the moment, unfortunately. This is quite difficult to do to so that it would be flexible since the endpoints can be written in various ways to return responses. Naturally when we go for "automatic" responses it sets a path for writing the endpoints in certain way that is strictly restricted, reducing freedom and even hindering users of using all the features that the http framework might offer. Even so going with some way of automacy will not be feasible for other users and that makes it hard to find a golden middle ground for most users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Refinement Needed Refinement needed if possible
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants