(w http.ResponseWriter)
| 41 | } |
| 42 | |
| 43 | func 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 | |
| 52 | func writeResponse(w http.ResponseWriter, message any, code int) { |
| 53 | writeHeaders(w) |
no outgoing calls
no test coverage detected
searching dependent graphs…