I'm trying to implement an example of Envoy gRPC Bridge in Java follow this https://www.envoyproxy.io/docs/envoy/latest/start/sandboxes/grpc_bridge
In the source code of example from Envoy, there is the code building the gRPC frame from grpc request, then put it as data in the http request to envoy proxy
r = kv.GetRequest(key=key)
# Build the gRPC frame
data = r.SerializeToString()
data = pack('!cI', b'\0', len(data)) + data
resp = requests.post(HOST + "/kv.KV/Get", data=data, headers=HEADERS)
return kv.GetResponse().FromString(resp.content[5:])
But I don't know how to do the same (build the grpc frame) in Java
Please help me to know how I can do this?
You guys can find full of example code here https://github.com/envoyproxy/envoy/tree/master/examples/grpc-bridge
Thanks