After registers a function which is called just after the response is written.
(fn func())
| 39 | |
| 40 | // After registers a function which is called just after the response is written. |
| 41 | func (r *Response) After(fn func()) { |
| 42 | r.afterFuncs = append(r.afterFuncs, fn) |
| 43 | } |
| 44 | |
| 45 | // WriteHeader sends an HTTP response header with status code. If WriteHeader is |
| 46 | // not called explicitly, the first call to Write will trigger an implicit |
no outgoing calls