PostHandle registers an handler which is executed after a kite.Handler method is executed. Calling PostHandler multiple times registers multiple handlers. A non-error return triggers the execution of the next handler. The execution order is FIFO.
(handler Handler)
| 187 | // handlers. A non-error return triggers the execution of the next handler. The |
| 188 | // execution order is FIFO. |
| 189 | func (k *Kite) PostHandle(handler Handler) { |
| 190 | k.postHandlers = append(k.postHandlers, handler) |
| 191 | } |
| 192 | |
| 193 | // PostHandleFunc is the same as PostHandle. It accepts a HandlerFunc. |
| 194 | func (k *Kite) PostHandleFunc(handler HandlerFunc) { |