responseEndedMidMessage function

RpcStatusException responseEndedMidMessage()

What a caller of any shape ends with when the response ends inside a gRPC frame: INTERNAL, not the peer's OK.

Implementation

RpcStatusException responseEndedMidMessage() => RpcStatusException(
  RpcStatus.internal,
  'Response stream ended mid-message: the last gRPC frame is incomplete',
);