title: Envoy gRPC HTTP/1.1 bridge in java
body: <p>I'm trying to implement an example of Envoy gRPC Bridge in Java follow this <a href="https://www.envoyproxy.io/docs/envoy/latest/start/sandboxes/grpc_bridge" rel="nofollow noreferrer">https://www.envoyproxy.io/docs/envoy/latest/start/sandboxes/grpc_bridge</a></p>
  
  <p>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</p>
  
  <pre><code> 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:])
  </code></pre>
  
  <p>But I don't know how to do the same (build the grpc frame) in Java</p>
  
  <p>Please help me to know how I can do this?</p>
  
  <p>You guys can find full of example code here <a href="https://github.com/envoyproxy/envoy/tree/master/examples/grpc-bridge" rel="nofollow noreferrer">https://github.com/envoyproxy/envoy/tree/master/examples/grpc-bridge</a></p>
  
  <p>Thanks </p>