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

Method Set

header.go:18–20  ·  view source on GitHub ↗

Set sets Claims[key] = val. It'll overwrite without warning.

(key string, val interface{})

Source from the content-addressed store, hash-verified

16
17// Set sets Claims[key] = val. It'll overwrite without warning.
18func (h Header) Set(key string, val interface{}) {
19 h[key] = val
20}
21
22// Del removes the value that corresponds with key from the Header.
23func (h Header) Del(key string) {

Callers 1

TestBasicHeaderFunctionsFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestBasicHeaderFunctionsFunction · 0.76