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

Method updateHeaderSent

internal/transport/server_stream.go:87–89  ·  view source on GitHub ↗

updateHeaderSent updates headerSent and returns true if it was already set.

()

Source from the content-addressed store, hash-verified

85// updateHeaderSent updates headerSent and returns true
86// if it was already set.
87func (s *ServerStream) updateHeaderSent() bool {
88 return s.headerSent.Swap(true)
89}
90
91// RecvCompress returns the compression algorithm applied to the inbound
92// message. It is empty string if there is no compression applied.

Callers 5

writeStatusMethod · 0.80
writeMethod · 0.80
writeHeaderMethod · 0.80
writeHeaderMethod · 0.80
writeStatusMethod · 0.80

Implementers 1

serverStreamstream.go

Calls 1

SwapMethod · 0.45

Tested by

no test coverage detected