(code int)
| 169 | } |
| 170 | |
| 171 | func (tw *timeoutWriter) WriteHeader(code int) { |
| 172 | tw.mu.Lock() |
| 173 | defer tw.mu.Unlock() |
| 174 | tw.writeHeaderLocked(code) |
| 175 | } |
| 176 | |
| 177 | // relevantCaller searches the call stack for the first function outside of net/http. |
| 178 | // The purpose of this function is to provide more helpful error messages. |
no test coverage detected