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

Function headerGet

header.go:43–48  ·  view source on GitHub ↗

get is like Get, but key must already be in CanonicalHeaderKey form.

(h http.Header, key string)

Source from the content-addressed store, hash-verified

41
42// get is like Get, but key must already be in CanonicalHeaderKey form.
43func headerGet(h http.Header, key string) string {
44 if v := h[key]; len(v) > 0 {
45 return v[0]
46 }
47 return ""
48}
49
50// has reports whether h has the provided key defined, even if it's
51// set to 0-length slice.

Callers 3

reqExpectsContinueFunction · 0.85
reqWantsCloseFunction · 0.85
writeHeaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…