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

Method addHandle

method.go:78–93  ·  view source on GitHub ↗

addHandle is an internal method to add a handler

(method string, handler Handler)

Source from the content-addressed store, hash-verified

76
77// addHandle is an internal method to add a handler
78func (k *Kite) addHandle(method string, handler Handler) *Method {
79 authenticate := true
80 if k.Config.DisableAuthentication {
81 authenticate = false
82 }
83
84 m := &Method{
85 name: method,
86 handler: handler,
87 authenticate: authenticate,
88 handling: k.MethodHandling,
89 }
90
91 k.handlers[method] = m
92 return m
93}
94
95// DisableAuthentication disables authentication check for this method.
96func (m *Method) DisableAuthentication() *Method {

Callers 2

HandleMethod · 0.95
HandleFuncMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected