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

Function decodeMetadataHeader

internal/transport/http_util.go:150–156  ·  view source on GitHub ↗
(k, v string)

Source from the content-addressed store, hash-verified

148}
149
150func decodeMetadataHeader(k, v string) (string, error) {
151 if strings.HasSuffix(k, binHdrSuffix) {
152 b, err := decodeBinHeader(v)
153 return string(b), err
154 }
155 return v, nil
156}
157
158type timeoutUnit uint8
159

Callers 4

operateHeadersMethod · 0.85
operateHeadersMethod · 0.85

Calls 1

decodeBinHeaderFunction · 0.85

Tested by 1