MCPcopy Index your code
hub / github.com/koding/kite / PreHandle

Method PreHandle

method.go:176–178  ·  view source on GitHub ↗

PreHandle registers an handler which is executed before a kite.Handler method is executed. Calling PreHandle multiple times registers multiple handlers. A non-error return triggers the execution of the next handler. The execution order is FIFO.

(handler Handler)

Source from the content-addressed store, hash-verified

174// handlers. A non-error return triggers the execution of the next handler. The
175// execution order is FIFO.
176func (k *Kite) PreHandle(handler Handler) {
177 k.preHandlers = append(k.preHandlers, handler)
178}
179
180// PreHandleFunc is the same as PreHandle. It accepts a HandlerFunc.
181func (k *Kite) PreHandleFunc(handler HandlerFunc) {

Callers 1

PreHandleFuncMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected