Whether the last MESSAGE received used the negotiated compressed envelope. This describes wire compression, independently of the decoded Protobuf value. .
Signature
received_compressed :: (call: *Call) -> bool
channel: Channel; // set transport.base_url and transport.tls before the first call
method := Method.{ path = "/echo.Echo/Say" };
call, status := open_call(*channel, method);
assert(status.code == .OK);
defer close(*call);
message, kind := receive_bytes(*call);
if kind == .MESSAGE {
defer free(message.data);
print("gzip: %\n", received_compressed(*call));
}