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
希望可以提供multipart-form请求的解码器。 之前和kratos群里讨论过这个问题,官方的答复是 multipart-form不属于http grpc的mapping里,所以并不额外提供对应的解码器。 仔细想想,这是不合理的。 因为目前kratos实现的的codec 还是http/binding都是给http server使用的。grpc有自己的codec实现,我们并不需要关注, 所以kratos的解码器应该去支持http request的multpart-form的解码方案。
建议参照gin框架的binding,在kratos中 transport/http/binding中去支持multipart-form的实现。
The text was updated successfully, but these errors were encountered:
不是因为 codec 的问题,是如果使用 proto 声明,文件应该对应 proto 哪个类型
Sorry, something went wrong.
ref:
👋 hello! Maybe my project could help with gRPC file uploads: https://github.com/emcfarlane/larking
No branches or pull requests
Feature-request
希望可以提供multipart-form请求的解码器。
之前和kratos群里讨论过这个问题,官方的答复是 multipart-form不属于http grpc的mapping里,所以并不额外提供对应的解码器。
仔细想想,这是不合理的。
因为目前kratos实现的的codec 还是http/binding都是给http server使用的。grpc有自己的codec实现,我们并不需要关注,
所以kratos的解码器应该去支持http request的multpart-form的解码方案。
Proposal
建议参照gin框架的binding,在kratos中 transport/http/binding中去支持multipart-form的实现。
Pull-request
Decision process
Final decision maker mechanism
Proposal description
Implementation mode
The text was updated successfully, but these errors were encountered: