MCPcopy Create free account
hub / github.com/docker/cli / writeHeaders

Function writeHeaders

internal/registry/registry_mock_test.go:43–50  ·  view source on GitHub ↗
(w http.ResponseWriter)

Source from the content-addressed store, hash-verified

41}
42
43func writeHeaders(w http.ResponseWriter) {
44 h := w.Header()
45 h.Add("Server", "docker-tests/mock")
46 h.Add("Expires", "-1")
47 h.Add("Content-Type", "application/json")
48 h.Add("Pragma", "no-cache")
49 h.Add("Cache-Control", "no-cache")
50}
51
52func writeResponse(w http.ResponseWriter, message any, code int) {
53 writeHeaders(w)

Callers 1

writeResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…