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

Method TrailersOnly

internal/transport/client_stream.go:172–175  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

170// then returns true if the stream was trailers-only. If the stream ends
171// before headers are received, returns true, nil.
172func (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,

Callers 1

shouldRetryMethod · 0.80

Implementers 3

clientStreamstream.go
okStreaminternal/xds/httpfilter/fault/fault.go

Calls 1

waitOnHeaderMethod · 0.95

Tested by

no test coverage detected