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

Function Header

rpc_util.go:268–270  ·  view source on GitHub ↗

Header returns a CallOptions that retrieves the header metadata for a unary RPC.

(md *metadata.MD)

Source from the content-addressed store, hash-verified

266// Header returns a CallOptions that retrieves the header metadata
267// for a unary RPC.
268func Header(md *metadata.MD) CallOption {
269 return HeaderCallOption{HeaderAddr: md}
270}
271
272// HeaderCallOption is a CallOption for collecting response header metadata.
273// The metadata field will be populated *after* the RPC completes.

Callers 11

DoCustomMetadataFunction · 0.92
makeOneRPCFunction · 0.92
testMetadataUnaryRPCFunction · 0.92
callUnaryEchoFunction · 0.92
unaryCallWithMetadataFunction · 0.92

Calls

no outgoing calls