We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I don't need to return data to client
func Handle(ctx http.Context) error { return ctx.Result(204, nil) }
null
func Handle(ctx http.Context) error { return ctx.Result(200, nil) }
when call ctx.Result(xxx, nil), server don't return any data to client
kratos -v
kratos version v2.2.1
go version
cat /etc/os-release
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
What happened:
When I don't need to return data to client
null
string to clientWhat you expected to happen:
when call ctx.Result(xxx, nil), server don't return any data to client
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kratos -v
):kratos version v2.2.1
go version
):cat /etc/os-release
):The text was updated successfully, but these errors were encountered: