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

Method Trailer

internal/resolver/config_selector.go:67–67  ·  view source on GitHub ↗

Trailer returns the trailer metadata from the server, if there is any. It must only be called after stream.CloseAndRecv has returned, or stream.Recv has returned a non-nil error (including io.EOF).

()

Source from the content-addressed store, hash-verified

65 // It must only be called after stream.CloseAndRecv has returned, or
66 // stream.Recv has returned a non-nil error (including io.EOF).
67 Trailer() metadata.MD
68 // CloseSend closes the send direction of the stream. It closes the stream
69 // when non-nil error is met. It is also not safe to call CloseSend
70 // concurrently with SendMsg.

Callers 15

processUnaryRPCMethod · 0.65
processStreamingRPCMethod · 0.65
shouldRetryMethod · 0.65
TrailerMethod · 0.65
finishMethod · 0.65
TrailerMethod · 0.65
afterMethod · 0.65
DoCustomMetadataFunction · 0.65
testMetadataStreamingRPCFunction · 0.65
TestContextCanceledMethod · 0.65

Implementers 3

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

Calls

no outgoing calls

Tested by 4

testMetadataStreamingRPCFunction · 0.52
TestContextCanceledMethod · 0.52