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

Function headerHas

header.go:52–55  ·  view source on GitHub ↗

has reports whether h has the provided key defined, even if it's set to 0-length slice.

(h http.Header, key string)

Source from the content-addressed store, hash-verified

50// has reports whether h has the provided key defined, even if it's
51// set to 0-length slice.
52func headerHas(h http.Header, key string) bool {
53 _, ok := h[key]
54 return ok
55}
56
57// sortedKeyValues returns h's keys sorted in the returned kvs
58// slice. The headerSorter used to sort is also returned, for possible

Callers 2

isReplayableFunction · 0.85
writeRequestMethod · 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…