has reports whether h has the provided key defined, even if it's set to 0-length slice.
(h http.Header, key string)
| 50 | // has reports whether h has the provided key defined, even if it's |
| 51 | // set to 0-length slice. |
| 52 | func 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…