-
Notifications
You must be signed in to change notification settings - Fork 64
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
实现triple协议中支持curl访问的能力 #145
Comments
现在triple协议没有对外提供http server,不能通过curl来访问。你的设计看起来不能实现这个能力 |
啊,我的意思是实现使用curl直接向unary服务发起通信,让server能够处理http1.1post请求的json数据,目前我改了一个初步版本,根据curl测试来看应该是可以实现这个能力 |
钉钉加您了,麻烦同意一下 |
yang20150702
pushed a commit
that referenced
this issue
Aug 18, 2023
* feat: 支持curl直接访问 将json消息转化为grpc消息,继而交给grpc handle进行处理,并以json格式返回数据 * fix(fix bug): * refactor: 将生成Codec的逻辑转移到了TripleServer * Feat: Added support for JSON encoding types(#145) * fix: Fixed a bug related to compression(#145) * perf: Improved code reuse-related logic(#145) Optimized the logic of TripleServer and TripleClient, achieving code reuse. Merged encoding and encoding_json * style: Formatted the code according to the cargo fmt standard(#145) * perf: Resolved the warnings from cargo check(#145) * perf: Optimized the code structure and removed redundant code(#145) * perf: Optimized the configuration format as well as the configuration loading method.(#145) * perf: Removed configuration using serialization methods.(#145) The RPC client now exclusively uses protobuf for serialization. --------- Co-authored-by: urara <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
实现triple协议中支持curl访问的能力
#[derive(Serialize, Deserialize)]
#[serde(crate = "::serde")]
#[serde(rename_all = "snake_case")]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
‘pub struct GreeterReply {
#[prost(string, tag = "1")]
pub message: ::prost::alloc::string::String,
}`
The text was updated successfully, but these errors were encountered: