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

Function withRPCMethod

runtime/context.go:387–389  ·  view source on GitHub ↗
(ctx context.Context, rpcMethodName string)

Source from the content-addressed store, hash-verified

385}
386
387func withRPCMethod(ctx context.Context, rpcMethodName string) context.Context {
388 return context.WithValue(ctx, rpcMethodKey{}, rpcMethodName)
389}
390
391// HTTPPathPattern returns the HTTP path pattern string relating to the HTTP handler, if one exists.
392// The format of the returned string is defined by the google.api.http path template type.

Callers 1

annotateContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected