1
votes

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 (#4951, #4267) to make OkHttp compatible with GRPC.

Could someone provide an example / link of how to build a GRPC-compatible OkHttpClient session? Is this this even supported at present (Oct '19)?

I'm specifically particularly in how one goes about starting in h2c i.e. cleartext mode, as GRPC does not support the HTTP 1.x -> 2 upgrade protocol, as per discussion on gitter, and my server doesn't support TLS.

1

1 Answers