HandleHTTPFunc registers the HTTP handler for the given pattern into the underlying HTTP muxer.
(pattern string, handler func(http.ResponseWriter, *http.Request))
| 268 | // HandleHTTPFunc registers the HTTP handler for the given pattern into the |
| 269 | // underlying HTTP muxer. |
| 270 | func (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. |