basicWriter wraps a http.ResponseWriter that implements the minimal http.ResponseWriter interface.
| 71 | // basicWriter wraps a http.ResponseWriter that implements the minimal |
| 72 | // http.ResponseWriter interface. |
| 73 | type basicWriter struct { |
| 74 | http.ResponseWriter |
| 75 | tee io.Writer |
| 76 | code int |
| 77 | bytes int |
| 78 | wroteHeader bool |
| 79 | discard bool |
| 80 | } |
| 81 | |
| 82 | func (b *basicWriter) WriteHeader(code int) { |
| 83 | if code >= 100 && code <= 199 && code != http.StatusSwitchingProtocols { |
nothing calls this directly
no outgoing calls
no test coverage detected