Get gets the first value associated with the given key. It is case-sensitive.
(key string)
| 4250 | // Get gets the first value associated with the given key. |
| 4251 | // It is case-sensitive. |
| 4252 | func (h Header) Get(key string) string { |
| 4253 | if h == nil { |
| 4254 | return _EMPTY_ |
| 4255 | } |
| 4256 | if v := h[key]; v != nil { |
| 4257 | return v[0] |
| 4258 | } |
| 4259 | return _EMPTY_ |
| 4260 | } |
| 4261 | |
| 4262 | // Values returns all values associated with the given key. |
| 4263 | // It is case-sensitive. |
no outgoing calls