MCPcopy
hub / github.com/grpc/grpc-go / WriteStatus

Method WriteStatus

internal/transport/server_stream.go:76–78  ·  view source on GitHub ↗

WriteStatus sends the status of a stream to the client. WriteStatus is the final call made on a stream and always occurs.

(st *status.Status)

Source from the content-addressed store, hash-verified

74// WriteStatus sends the status of a stream to the client. WriteStatus is
75// the final call made on a stream and always occurs.
76func (s *ServerStream) WriteStatus(st *status.Status) error {
77 return s.st.writeStatus(s, st)
78}
79
80// isHeaderSent indicates whether headers have been sent.
81func (s *ServerStream) isHeaderSent() bool {

Callers 15

processUnaryRPCMethod · 0.80
processStreamingRPCMethod · 0.80
handleStreamMethod · 0.80
SendMsgMethod · 0.80
RecvMsgMethod · 0.80
handleStreamMethod · 0.80
handleStreamPingPongMethod · 0.80
handleStreamMisbehaveMethod · 0.80
handleStreamDelayReadMethod · 0.80

Implementers 1

serverStreamstream.go

Calls 1

writeStatusMethod · 0.65