MCPcopy Create free account
hub / github.com/imroc/req / lowerHeader

Function lowerHeader

internal/http2/headermap.go:92–98  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

90}
91
92func lowerHeader(v string) (lower string, isAscii bool) {
93 buildCommonHeaderMapsOnce()
94 if s, ok := commonLowerHeader[v]; ok {
95 return s, true
96 }
97 return ascii.ToLower(v)
98}
99
100func canonicalHeader(v string) string {
101 buildCommonHeaderMapsOnce()

Callers 2

encodeHeadersMethod · 0.85
encodeTrailersMethod · 0.85

Calls 2

ToLowerFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…