Get retrieves the value corresponding with key from the Header.
(key string)
| 8 | |
| 9 | // Get retrieves the value corresponding with key from the Header. |
| 10 | func (h Header) Get(key string) interface{} { |
| 11 | if h == nil { |
| 12 | return nil |
| 13 | } |
| 14 | return h[key] |
| 15 | } |
| 16 | |
| 17 | // Set sets Claims[key] = val. It'll overwrite without warning. |
| 18 | func (h Header) Set(key string, val interface{}) { |
no outgoing calls