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

Method Header

runtime/context.go:254–258  ·  view source on GitHub ↗

Header returns the header metadata of the stream.

()

Source from the content-addressed store, hash-verified

252
253// Header returns the header metadata of the stream.
254func (s *ServerTransportStream) Header() metadata.MD {
255 s.mu.Lock()
256 defer s.mu.Unlock()
257 return s.header.Copy()
258}
259
260// SetHeader sets the header metadata.
261func (s *ServerTransportStream) SetHeader(md metadata.MD) error {

Calls

no outgoing calls