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

Method HandleHTTPFunc

kite.go:270–272  ·  view source on GitHub ↗

HandleHTTPFunc registers the HTTP handler for the given pattern into the underlying HTTP muxer.

(pattern string, handler func(http.ResponseWriter, *http.Request))

Source from the content-addressed store, hash-verified

268// HandleHTTPFunc registers the HTTP handler for the given pattern into the
269// underlying HTTP muxer.
270func (k *Kite) HandleHTTPFunc(pattern string, handler func(http.ResponseWriter, *http.Request)) {
271 k.muxer.HandleFunc(pattern, handler)
272}
273
274// ServeHTTP helps Kite to satisfy the http.Handler interface. So kite can be
275// used as a standard http server.

Callers 1

NewFunction · 0.80

Calls 1

HandleFuncMethod · 0.80

Tested by

no test coverage detected