https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
f

Fanilog

01/06/2022, 4:55 PM
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

jessewilson

01/06/2022, 7:50 PM
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

Fanilog

01/07/2022, 2:49 PM
Ok I understand why I had trouble to even read the hex string with https://mattprecious.github.io/protogram/