-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[Feature] Add Unwrap to custom response writer. #3253
Comments
It's great to see your interest in adding the Unwrap method to the custom ResponseWriter. Your proposed solution and the requirements description look good. We encourage you to go ahead and create a pull request with your changes. Your contribution will be valuable to the project. Thank you for your willingness to improve the codebase!
|
|
Sure, I can guide you through the process of creating a pull request to add an "Unwrap" method to the custom ResponseWriter in the Kratos repository. Here are the steps:
Please note that after submitting your pull request, it will be reviewed by the maintainers of the Kratos repository. They might ask you to make some changes or improvements to your code. So, be prepared for that. I hope this helps! If you have any other questions, feel free to ask. Sources
|
Please see the FAQ in our main README.md before submitting your issue.
What problem is the feature used to solve?
Go added a new feature called NewResponseController in go 1.20. Pay attention to the doc blow:
As it said, custom ResponseWriter should add an Unwrap method to return underlaying ResponseWriter.
Currently, there is a custom ResponseWriter in transport/http. And it is used in http.Context:
kratos/transport/http/context.go
Lines 45 to 66 in 3110168
Shall we support this feature, so that we can use some code likes below:
Requirements description of the feature
Add an "Unwrap" method to transport/http.responseWriter.
References
The text was updated successfully, but these errors were encountered: