TrailersOnly blocks until a header or trailers-only frame is received and then returns true if the stream was trailers-only. If the stream ends before headers are received, returns true, nil.
()
| 170 | // then returns true if the stream was trailers-only. If the stream ends |
| 171 | // before headers are received, returns true, nil. |
| 172 | func (s *ClientStream) TrailersOnly() bool { |
| 173 | s.waitOnHeader() |
| 174 | return s.noHeaders |
| 175 | } |
| 176 | |
| 177 | // Status returns the status received from the server. |
| 178 | // Status can be read safely only after the stream has ended, |
no test coverage detected