title: How to create a GRPC-compliant OkHttpClient?
body: <p>I am trying to write a GRPC client using OkHttp. GRPC is (in very simplified terms) an http2 connection, with special headers. I can see that there have already been features added (<a href="https://github.com/square/okhttp/issues/4951" rel="nofollow noreferrer">#4951</a>, <a href="https://github.com/square/okhttp/issues/4267" rel="nofollow noreferrer">#4267</a>) to make OkHttp compatible with GRPC.</p>
  
  <p>Could someone provide an example / link of how to build a GRPC-compatible <code>OkHttpClient</code> session? Is this this even supported at present (Oct '19)? </p>
  
  <p>I'm specifically particularly in how one goes about starting in <code>h2c</code> i.e. cleartext mode, as GRPC does not support the HTTP 1.x -> 2 upgrade protocol, <a href="https://gitter.im/grpc/grpc?at=5d978f73874aeb2d23eaecd1" rel="nofollow noreferrer">as per discussion on gitter</a>, and my server doesn't support TLS.</p>