Hello :wave: , I’m trying to intercept the reques...
# squarelibraries
f
Hello 👋 , I’m trying to intercept the request body with OkHttp when I’m doing a call with wire-grpc. How can I decode the
RequestBody
after doing
Copy code
val buffer = Buffer()
requestBody?.writeTo(buffer)
buffer.readByteArray()
?
j
By the way, the body won't be a proto immediately. There's some wrapping framing stuff around the message. See Wire MessageReader
1
f
Ok I understand why I had trouble to even read the hex string with https://mattprecious.github.io/protogram/