MCPcopy Index your code
hub / github.com/coder/coder / Append

Method Append

coderd/httpmw/csp.go:16–21  ·  view source on GitHub ↗
(d CSPFetchDirective, values ...string)

Source from the content-addressed store, hash-verified

14type cspDirectives map[CSPFetchDirective][]string
15
16func (s cspDirectives) Append(d CSPFetchDirective, values ...string) {
17 if _, ok := s[d]; !ok {
18 s[d] = make([]string, 0)
19 }
20 s[d] = append(s[d], values...)
21}
22
23// CSPFetchDirective is the list of all constant fetch directives that
24// can be used/appended to.

Callers 11

CSPHeadersFunction · 0.95
authMethod · 0.45
TracerProviderFunction · 0.45
CloseMethod · 0.45
CloseMethod · 0.45
ShutdownMethod · 0.45
GoMethod · 0.45
UpsertMethod · 0.45
CloseMethod · 0.45
CloseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected