DescriptionIf the user supplied a request body in hex, print response body in hex as well. In addition, convert hex in both cases to printable ASCII characters where possible.
Example output:
Request:
headers:
{
:authority:test.example.com
:path:/net.grpc.examples.QuicGreeter/SayHello
:scheme:http
:method:POST
te:trailers
grpc-encoding:identity
grpc-accept-encoding:identity,deflate,gzip
content-type:application/grpc
user-agent:grpc-c++/0.12.0.0 grpc-c/0.12.0.0 (linux)
}
body hex: 00000000070a05776f726c64
body ascii: . . . . . . . w o r l d
Response:
headers:
HTTP/1.1 200 OK
grpc-encoding: identity
grpc-accept-encoding: identity,deflate,gzip
content-type: application/grpc
body hex: 0a0b48656c6c6f20776f726c64
body ascii: . . H e l l o w o r l d
trailers:
{
grpc-status:0
}
Request succeeded (200).
n/a (QUIC client)
Merge internal change: 110446931
R=rch@chromium.org
Patch Set 1 #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 3 (1 generated)
|