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

Method Has

header.go:28–31  ·  view source on GitHub ↗

Has returns true if a value for the given key exists inside the Header.

(key string)

Source from the content-addressed store, hash-verified

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

Callers 1

TestBasicHeaderFunctionsFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestBasicHeaderFunctionsFunction · 0.76