(b []byte)
| 94 | } |
| 95 | |
| 96 | func (rw *notFoundBlockingResponseWriter) Write(b []byte) (int, error) { |
| 97 | if rw.status == http.StatusNotFound { |
| 98 | // Block the write if it's a 404 |
| 99 | return len(b), nil |
| 100 | } |
| 101 | if rw.status == 0 { |
| 102 | rw.WriteHeader(http.StatusOK) |
| 103 | } |
| 104 | return rw.w.Write(b) |
| 105 | } |
| 106 | |
| 107 | func handleService(w http.ResponseWriter, r *http.Request) { |
| 108 | bodyData, err := io.ReadAll(r.Body) |
nothing calls this directly
no test coverage detected