get is like Get, but key must already be in CanonicalHeaderKey form.
(h http.Header, key string)
| 41 | |
| 42 | // get is like Get, but key must already be in CanonicalHeaderKey form. |
| 43 | func 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…