How to parse HTTP message from another node to a g

2019-06-15 00:19发布

问题:

I could successfully run a gRPC client and gRPC server in c++ now I wish to establish a communication between node A and gRPC server i.e. node B as in the attached image.

Are there any examples which I can refer to below is what I am looking for.

I have this node A with http message (GET method) which I need to parse i.e extract the message and run the request on node C. What is that I should look for in between Node A and gRPC server.

Thanks in Advance

回答1:

Most of the times, if you have to use HTTP to contact a gRPC node, it most likely means that A is in fact a browser or browser-like environment, since you can simply instantiate a gRPC client on pretty much anything else.

If that's your situation, then I'd suggest having a look at grpc-web which aims to address that specific situation.