PreHandler adds a new kite handler which is executed before the method.
(handler Handler)
| 124 | |
| 125 | // PreHandler adds a new kite handler which is executed before the method. |
| 126 | func (m *Method) PreHandle(handler Handler) *Method { |
| 127 | m.preHandlers = append(m.preHandlers, handler) |
| 128 | return m |
| 129 | } |
| 130 | |
| 131 | // PreHandlerFunc adds a new kite handlerfunc which is executed before the |
| 132 | // method. |