MCPcopy Create free account
hub / github.com/SermoDigital/jose / Get

Method Get

header.go:10–15  ·  view source on GitHub ↗

Get retrieves the value corresponding with key from the Header.

(key string)

Source from the content-addressed store, hash-verified

8
9// Get retrieves the value corresponding with key from the Header.
10func (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.
18func (h Header) Set(key string, val interface{}) {

Callers 1

TestBasicHeaderFunctionsFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestBasicHeaderFunctionsFunction · 0.76