MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / Set

Method Set

pkg/api/controller.go:110–115  ·  view source on GitHub ↗
(k, v string)

Source from the content-addressed store, hash-verified

108type InvokeHeaders map[string]string
109
110func (h InvokeHeaders) Set(k, v string) {
111 if h == nil {
112 h = make(map[string]string, 0)
113 }
114 h[k] = v
115}
116func (h InvokeHeaders) Get(k string) string {
117 if res, ok := h[k]; ok {
118 return res

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected