WriteHeader wraps the original WriteHeader method to extract information.
(code int)
| 36 | |
| 37 | // WriteHeader wraps the original WriteHeader method to extract information. |
| 38 | func (lrw *LoggingResponseWriter) WriteHeader(code int) { |
| 39 | lrw.Status = code |
| 40 | lrw.ResponseWriter.WriteHeader(code) |
| 41 | } |
| 42 | |
| 43 | // Hijack wraps the original Hijack method, if available. |
| 44 | func (lrw *LoggingResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) { |
no outgoing calls
no test coverage detected