MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / Trailer

Method Trailer

runtime/context.go:278–282  ·  view source on GitHub ↗

Trailer returns the cached trailer metadata.

()

Source from the content-addressed store, hash-verified

276
277// Trailer returns the cached trailer metadata.
278func (s *ServerTransportStream) Trailer() metadata.MD {
279 s.mu.Lock()
280 defer s.mu.Unlock()
281 return s.trailer.Copy()
282}
283
284// SetTrailer sets the trailer metadata.
285func (s *ServerTransportStream) SetTrailer(md metadata.MD) error {

Calls

no outgoing calls

Tested by

no test coverage detected