Has returns true if a value for the given key exists inside the Header.
(key string)
| 26 | |
| 27 | // Has returns true if a value for the given key exists inside the Header. |
| 28 | func (h Header) Has(key string) bool { |
| 29 | _, ok := h[key] |
| 30 | return ok |
| 31 | } |
| 32 | |
| 33 | // MarshalJSON implements json.Marshaler for Header. |
| 34 | func (h Header) MarshalJSON() ([]byte, error) { |
no outgoing calls