MCPcopy Index your code
hub / github.com/imroc/req / convertHeaderToString

Function convertHeaderToString

req.go:121–128  ·  view source on GitHub ↗

convertHeaderToString converts http header to a string.

(h http.Header)

Source from the content-addressed store, hash-verified

119
120// convertHeaderToString converts http header to a string.
121func convertHeaderToString(h http.Header) string {
122 if h == nil {
123 return ""
124 }
125 buf := new(bytes.Buffer)
126 h.Write(buf)
127 return buf.String()
128}

Callers 2

HeaderToStringMethod · 0.85
HeaderToStringMethod · 0.85

Calls 2

WriteMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…