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

Function decodeBinHeader

runtime/context.go:63–69  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

61}
62
63func decodeBinHeader(v string) ([]byte, error) {
64 if len(v)%4 == 0 {
65 // Input was padded, or padding was not necessary.
66 return base64.StdEncoding.DecodeString(v)
67 }
68 return base64.RawStdEncoding.DecodeString(v)
69}
70
71/*
72AnnotateContext adds context information such as metadata from the request.

Callers 1

annotateContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected