MCPcopy Create free account
hub / github.com/koding/kite / PreHandle

Method PreHandle

method.go:126–129  ·  view source on GitHub ↗

PreHandler adds a new kite handler which is executed before the method.

(handler Handler)

Source from the content-addressed store, hash-verified

124
125// PreHandler adds a new kite handler which is executed before the method.
126func (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.

Callers 1

PreHandleFuncMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected