basicWriter wraps a http.ResponseWriter that implements the minimal http.ResponseWriter interface.
| 48 | // basicWriter wraps a http.ResponseWriter that implements the minimal |
| 49 | // http.ResponseWriter interface. |
| 50 | type basicWriter struct { |
| 51 | http.ResponseWriter |
| 52 | wroteHeader bool |
| 53 | code int |
| 54 | bytes int |
| 55 | tee io.Writer |
| 56 | } |
| 57 | |
| 58 | func (b *basicWriter) WriteHeader(code int) { |
| 59 | if !b.wroteHeader { |
nothing calls this directly
no outgoing calls
no test coverage detected