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

Support any middleware response that implements IntoResponse #1152

Merged
merged 3 commits into from Jul 13, 2022

Conversation

davidpdrsn
Copy link
Member

Rather than requiring middleware to return Response<_> I think we should allow any IntoResponse. Makes things a little more flexible and consistent with handler functions.

@davidpdrsn davidpdrsn enabled auto-merge (squash) July 13, 2022 08:29
@davidpdrsn davidpdrsn merged commit 329bd5f into main Jul 13, 2022
@davidpdrsn davidpdrsn deleted the middleware-into-response branch July 13, 2022 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants