grpc-httpjson-transcoding icon indicating copy to clipboard operation
grpc-httpjson-transcoding copied to clipboard

What's the usage scenario of this tool?

Open yzhao1012 opened this issue 6 years ago • 1 comments

Hi All,

As title suggested, I am wondering if this package can do the following:

  • Capture a stream of gRPC request and response through network packet capturing (assuming that the captured packets are purely from one gRPC connection between one server and one client).
  • Feed the stream into this trans-coder. Would this trans-coder actually produces the corresponding json request and response directly?
  • Or I need to extract the protocol buffer binary stream out of the gRPC stream and feed to this transcoder, which means that this transcoder does not handle the protocol metadata in gRPC?

yzhao1012 avatar Jun 04 '19 16:06 yzhao1012

This lib doesn't work on the IP packets. It only works on L7 layer: Http body for JSON and gRPC data frames.

You can look its usage here:

qiwzhang avatar Jun 04 '19 22:06 qiwzhang