feat(tonic-web): implement grpc <-> grpc-web protocol translation (#455)
tonic-web enables tonic servers to handle requests from grpc-web clients directly, without the need of an external proxy. Co-authored-by: John Hernandez <[email protected]> Co-authored-by: zancas <[email protected]>
This commit is contained in:
co-authored by
John Hernandez
zancas
parent
352b0f584b
commit
c309063254
@@ -0,0 +1,19 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package test;
|
||||
|
||||
service Test {
|
||||
rpc UnaryCall(Input) returns (Output);
|
||||
rpc ServerStream(Input) returns (stream Output);
|
||||
rpc ClientStream(stream Input) returns (Output);
|
||||
}
|
||||
|
||||
message Input {
|
||||
int32 id = 1;
|
||||
string desc = 2;
|
||||
}
|
||||
|
||||
message Output {
|
||||
int32 id = 1;
|
||||
string desc = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user