finalizeNonGRPCStatus builds the terminal status by appending the collected response body to the original non-gRPC status message.
()
| 73 | // finalizeNonGRPCStatus builds the terminal status by appending the collected |
| 74 | // response body to the original non-gRPC status message. |
| 75 | func (s *ClientStream) finalizeNonGRPCStatus() *status.Status { |
| 76 | msg := fmt.Sprintf("%s\ndata: %q", s.nonGRPCStatus.Message(), s.nonGRPCDataBuf) |
| 77 | return status.New(s.nonGRPCStatus.Code(), msg) |
| 78 | } |
| 79 | |
| 80 | // handleNonGRPCData collects non-gRPC body from the given data frame. |
| 81 | // It returns non-nil value when the stream should be closed with it. |
no test coverage detected