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

Function encodeMetadataHeader

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

Source from the content-addressed store, hash-verified

141}
142
143func encodeMetadataHeader(k, v string) string {
144 if strings.HasSuffix(k, binHdrSuffix) {
145 return encodeBinHeader(([]byte)(v))
146 }
147 return v
148}
149
150func decodeMetadataHeader(k, v string) (string, error) {
151 if strings.HasSuffix(k, binHdrSuffix) {

Callers 5

writeStatusMethod · 0.85
writeCustomHeadersMethod · 0.85
appendHeaderFieldsFromMDFunction · 0.85
createHeaderFieldsMethod · 0.85

Calls 1

encodeBinHeaderFunction · 0.85

Tested by 1