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

Function ExtraMetadata

internal/grpcutil/metadata.go:37–40  ·  view source on GitHub ↗

ExtraMetadata returns the incoming metadata in ctx if it exists. The returned MD should not be modified. Writing to it may cause races. Modification should be made to copies of the returned MD.

(ctx context.Context)

Source from the content-addressed store, hash-verified

35// returned MD should not be modified. Writing to it may cause races.
36// Modification should be made to copies of the returned MD.
37func ExtraMetadata(ctx context.Context) (md metadata.MD, ok bool) {
38 md, ok = ctx.Value(mdExtraKey{}).(metadata.MD)
39 return
40}

Callers 3

PickMethod · 0.92
generateHashMethod · 0.92
MatchMethod · 0.92

Calls 1

ValueMethod · 0.45

Tested by 1

PickMethod · 0.74