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

Struct HeaderCallOption

rpc_util.go:279–281  ·  view source on GitHub ↗

HeaderCallOption is a CallOption for collecting response header metadata. The metadata field will be populated *after* the RPC completes. # Experimental Notice: This type is EXPERIMENTAL and may be changed or removed in a later release.

Source from the content-addressed store, hash-verified

277// Notice: This type is EXPERIMENTAL and may be changed or removed in a
278// later release.
279type HeaderCallOption struct {
280 HeaderAddr *metadata.MD
281}
282
283func (o HeaderCallOption) before(*callInfo) error { return nil }
284func (o HeaderCallOption) after(_ *callInfo, attempt *csAttempt) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected