From a9cd71320cc6c830dab2addfa3982cb5eb70591b Mon Sep 17 00:00:00 2001 From: iamqizhao Date: Mon, 25 Jan 2016 11:52:24 -0800 Subject: [PATCH] add more comments --- transport/transport.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/transport/transport.go b/transport/transport.go index 8017bc15..dda58234 100644 --- a/transport/transport.go +++ b/transport/transport.go @@ -203,10 +203,13 @@ type Stream struct { statusDesc string } +// RecvCompress returns the compression algorithm applied to the inbound +// message. It is empty string if there is no compression applied. func (s *Stream) RecvCompress() string { return s.recvCompress } +// SetSendCompress sets the compression algorithm to the stream. func (s *Stream) SetSendCompress(str string) { s.sendCompress = str }